Is there a way to get a player's UUID if the player's name isn't the correct case? For example if I do /getuuid dinnerbone instead of Dinnerbone it would return Dinnerbone's UUID. I am using threUUIDFetcher, but the name has to be the correct case. I am trying to get the UUID of an offline player
Maurdekye What do you mean o.o? SnipsRevival I am using the UUIDFetcher (pointing it out again). when I used Dinnerbone (61699b2e-d327-4a01-9f1e-0ea8c3f06bc6) dinnerbone(null)
That is strange. I know when I used it, all my player names were completely in lowercase and it worked fine. Can you show us how you are using it?
SnipsRevival Code:java public static String getUUIDFromName(String name) { UUIDFetcher fetcher = new UUIDFetcher(Arrays.asList(name)); Map<String, UUID> response = null; try { response = fetcher.call(); } catch (Exception e) { e.printStackTrace(); } return response.get(name).toString(); }
The list returned will contain the proper cased name so you need to adjust for that when you do your response.get() since your name variable is not properly cased.