Fix console being cast to player
This commit is contained in:
parent
144f762a0a
commit
2efda17935
@ -198,6 +198,10 @@ public class DisguiseUtilities {
|
||||
}
|
||||
|
||||
public static String getDisplayName(CommandSender player) {
|
||||
if (!(player instanceof Player)) {
|
||||
return player.getName();
|
||||
}
|
||||
|
||||
Team team = ((Player) player).getScoreboard().getEntryTeam(player.getName());
|
||||
|
||||
if (team == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user