From e14a36a97e8d0ad7300edde67187dea54de22fb1 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 25 Jan 2020 17:50:59 -0500 Subject: [PATCH] Fixed #1445 --- core/src/mindustry/core/NetClient.java | 4 ++-- core/src/mindustry/net/Administration.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)),