Examples of UUIDFetcher


Examples of com.Acrobot.Breeze.Utils.MojangAPI.UUIDFetcher

     *
     * @param username Username whose UUID to get
     * @return UUID of a specified username
     */
    public static UUID getUUID(String username) {
        UUIDFetcher fetcher = new UUIDFetcher(username);

        try {
            Map<String, UUID> uuidMap = fetcher.call();

            if (uuidMap.size() < 1) {
                return INVALID_UUID;
            }

View Full Code Here

Examples of com.Acrobot.Breeze.Utils.MojangAPI.UUIDFetcher

     *
     * @param usernames Usernames whose UUID to get
     * @return UUID of the specified usernames
     */
    public static Map<String, UUID> getUUID(String... usernames) {
        UUIDFetcher fetcher = new UUIDFetcher(usernames);

        try {
            return fetcher.call();
        } catch (Exception exception) {
            return ImmutableMap.of();
        }
    }
View Full Code Here

Examples of com.gamingmesh.jobs.util.UUIDFetcher

                ResultSet rs = pst1.executeQuery();
                ArrayList<String> usernames = new ArrayList<String>();
                while (rs.next()) {
                    usernames.add(rs.getString(1));
                }
                UUIDFetcher uuidFetcher = new UUIDFetcher(usernames);
                Map<String, UUID> userMap = null;
                try {
                    userMap = uuidFetcher.call();
                } catch (Exception e) {
                    e.printStackTrace();
                }
               
                if (userMap == null) {
View Full Code Here

Examples of com.gamingmesh.jobs.util.UUIDFetcher

                ResultSet rs = pst1.executeQuery();
                ArrayList<String> usernames = new ArrayList<String>();
                while (rs.next()) {
                    usernames.add(rs.getString(1));
                }
                UUIDFetcher uuidFetcher = new UUIDFetcher(usernames);
                Map<String, UUID> userMap = null;
                try {
                    userMap = uuidFetcher.call();
                } catch (Exception e) {
                    e.printStackTrace();
                }
               
                if (userMap == null) {
View Full Code Here

Examples of com.gmail.nossr50.util.uuid.UUIDFetcher

                userNamesSection = userNames.subList(0, size);
                size = 0;
            }

            try {
                fetchedUUIDs.putAll(new UUIDFetcher(userNamesSection).call());
            }
            catch (Exception e) {
                plugin.getLogger().log(Level.SEVERE, "Unable to fetch UUIDs!", e);
                return;
            }
View Full Code Here

Examples of org.melonbrew.fe.UUIDFetcher

        for (Account account : accounts) {
            names.add(account.getName());
        }

        UUIDFetcher fetcher = new UUIDFetcher(names);

        Map<String, UUID> response;

        try {
            response = fetcher.call();

            removeAllAccounts();

            for (String name : response.keySet()) {
                for (String accountName : new HashMap<String, Double>(accountMonies).keySet()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.