diff --git a/core/src/mindustry/core/NetClient.java b/core/src/mindustry/core/NetClient.java index 9508ad94e3..b961b62385 100644 --- a/core/src/mindustry/core/NetClient.java +++ b/core/src/mindustry/core/NetClient.java @@ -172,8 +172,8 @@ public class NetClient implements ApplicationListener{ } //special case; graphical server needs to see its message - if(!headless && player == Vars.player){ - Vars.ui.chatfrag.addMessage(message, colorizeName(player.id, player.name)); + if(!headless){ + sendMessage(message, colorizeName(player.id, player.name), player); } //server console logging diff --git a/core/src/mindustry/net/Administration.java b/core/src/mindustry/net/Administration.java index ca5a30f5c4..b48080484d 100644 --- a/core/src/mindustry/net/Administration.java +++ b/core/src/mindustry/net/Administration.java @@ -420,7 +420,7 @@ public class Administration{ crashReport("Whether to send crash reports.", false, "crashreport"), logging("Whether to log everything to files.", true), strict("Whether strict mode is on - corrects positions and prevents duplicate UUIDs.", true), - antiSpam("Whether spammers are automatically kicked and rate-limited.", true), + antiSpam("Whether spammers are automatically kicked and rate-limited.", headless), messageRateLimit("Message rate limit in seconds. 0 to disable.", 0), messageSpamKick("How many times a player must send a message before the cooldown to get kicked. 0 to disable.", 3), socketInput("Allows a local application to control this server through a local TCP socket.", false, "socket", () -> Events.fire(Trigger.socketConfigChanged)),