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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user