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) {
Player player = null;
for (Player p : Bukkit.getOnlinePlayers()) {
if (p.getName().equalsIgnoreCase(playerName)) {
player = p;
break;
}
}
Player player = Bukkit.getPlayerExact(playerName);
if (player != null) {
return ReflectionManager.getGameProfile(player);
} else if (disguise != null) {