Just get the playername exactly as it was fed.

This commit is contained in:
libraryaddict 2014-04-15 02:29:41 +12:00
parent 6ce864ae6c
commit 8511911e7e

View File

@ -271,13 +271,7 @@ public class DisguiseUtilities {
} }
public static Object getProfile(final Disguise disguise, final String playerName) { public static Object getProfile(final Disguise disguise, final String playerName) {
Player player = null; Player player = Bukkit.getPlayerExact(playerName);
for (Player p : Bukkit.getOnlinePlayers()) {
if (p.getName().equalsIgnoreCase(playerName)) {
player = p;
break;
}
}
if (player != null) { if (player != null) {
return ReflectionManager.getGameProfile(player); return ReflectionManager.getGameProfile(player);
} else if (disguise != null) { } else if (disguise != null) {