1
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:
Shy
2025-02-02 15:48:40 +01:00
parent 562fb014fa
commit bee44236dd
@@ -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();