Fix null
This commit is contained in:
parent
50022ee13a
commit
8144f16182
@ -198,6 +198,10 @@ public class DisguiseUtilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getDisplayName(CommandSender player) {
|
public static String getDisplayName(CommandSender player) {
|
||||||
|
if (player == null) {
|
||||||
|
return "???";
|
||||||
|
}
|
||||||
|
|
||||||
if (!(player instanceof Player)) {
|
if (!(player instanceof Player)) {
|
||||||
return player.getName();
|
return player.getName();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user