Fallback to player's name if no nick is set

This commit is contained in:
Firepup6500 2024-01-16 15:03:41 -06:00
parent 874782545c
commit 810a1a2b67

View File

@ -1252,7 +1252,7 @@ public class PurpleIRC extends JavaPlugin {
logDebug("getNickname (" + player + "): " + ex.getMessage());
}
if (nickname == null) {
nickname = "";
nickname = player;
}
return ChatColor.translateAlternateColorCodes('&', nickname);
}