Fix console being cast to player
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user