Just get the playername exactly as it was fed.
This commit is contained in:
parent
6ce864ae6c
commit
8511911e7e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user