mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 11:35:36 +01:00
Fallback to player's name if no nick is set
This commit is contained in:
parent
874782545c
commit
810a1a2b67
@ -1252,7 +1252,7 @@ public class PurpleIRC extends JavaPlugin {
|
||||
logDebug("getNickname (" + player + "): " + ex.getMessage());
|
||||
}
|
||||
if (nickname == null) {
|
||||
nickname = "";
|
||||
nickname = player;
|
||||
}
|
||||
return ChatColor.translateAlternateColorCodes('&', nickname);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user