mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +00:00
Fix null
This commit is contained in:
parent
50022ee13a
commit
8144f16182
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,10 @@ public class DisguiseUtilities {
|
|||
}
|
||||
|
||||
public static String getDisplayName(CommandSender player) {
|
||||
if (player == null) {
|
||||
return "???";
|
||||
}
|
||||
|
||||
if (!(player instanceof Player)) {
|
||||
return player.getName();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue