mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-07-04 11:55:13 +02:00
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