mirror of
https://github.com/Shiewk/BlockHistory3.git
synced 2026-04-28 04:24:17 +02:00
Fix error when saved UUID is null
This commit is contained in:
@@ -20,6 +20,7 @@ public final class PlayerUtil {
|
||||
}
|
||||
|
||||
public static Component playerName(UUID uuid) {
|
||||
if (uuid == null) return text("Unknown Player");
|
||||
Player player;
|
||||
if ((player = Bukkit.getPlayer(uuid)) != null){
|
||||
return player.displayName();
|
||||
|
||||
Reference in New Issue
Block a user