mirror of
https://github.com/Shiewk/SModeration.git
synced 2026-04-29 06:34:17 +02:00
Fixed a bug where unknown players would crash the SMod menu
This commit is contained in:
@@ -25,7 +25,7 @@ public abstract class PlayerUtil {
|
||||
return "CONSOLE";
|
||||
}
|
||||
OfflinePlayer player = Bukkit.getOfflinePlayer(uuid);
|
||||
return player.getName() == null ? uuid.toString() : player.getName();
|
||||
return player.getName() == null ? "Unknown Player" + uuid : player.getName();
|
||||
}
|
||||
|
||||
public static @Nullable UUID offlinePlayerUUIDByName(String name){
|
||||
|
||||
Reference in New Issue
Block a user