}
public static String a(String s) {
if (!UtilColor.b(s) && s.length() <= 16) {
MinecraftServer minecraftserver = MinecraftServer.getServer();
GameProfile gameprofile = minecraftserver.getUserCache().getProfile(s);
if (gameprofile != null && gameprofile.getId() != null) {
return gameprofile.getId().toString();
} else if (!minecraftserver.N() && minecraftserver.getOnlineMode()) {
ArrayList arraylist = Lists.newArrayList();
GameProfileLookupCallback gameprofilelookupcallback = new GameProfileLookupCallback(minecraftserver, arraylist);
a(minecraftserver, Lists.newArrayList(new String[] { s}), gameprofilelookupcallback);
return arraylist.size() > 0 && ((GameProfile) arraylist.get(0)).getId() != null ? ((GameProfile) arraylist.get(0)).getId().toString() : "";
} else {
return EntityHuman.a(new GameProfile((UUID) null, s)).toString();
}
} else {
return s;
}
}