This commit is contained in:
Anuken
2020-01-25 17:50:59 -05:00
parent ca69aafd11
commit e14a36a97e
2 changed files with 3 additions and 3 deletions

View File

@@ -172,8 +172,8 @@ public class NetClient implements ApplicationListener{
} }
//special case; graphical server needs to see its message //special case; graphical server needs to see its message
if(!headless && player == Vars.player){ if(!headless){
Vars.ui.chatfrag.addMessage(message, colorizeName(player.id, player.name)); sendMessage(message, colorizeName(player.id, player.name), player);
} }
//server console logging //server console logging

View File

@@ -420,7 +420,7 @@ public class Administration{
crashReport("Whether to send crash reports.", false, "crashreport"), crashReport("Whether to send crash reports.", false, "crashreport"),
logging("Whether to log everything to files.", true), logging("Whether to log everything to files.", true),
strict("Whether strict mode is on - corrects positions and prevents duplicate UUIDs.", 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), 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), 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)), socketInput("Allows a local application to control this server through a local TCP socket.", false, "socket", () -> Events.fire(Trigger.socketConfigChanged)),