Fix console being cast to player

This commit is contained in:
libraryaddict 2020-08-11 09:04:43 +12:00
parent 144f762a0a
commit 2efda17935

View File

@ -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) {