mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Closes #10537
This commit is contained in:
parent
02364029da
commit
c6262f5211
2 changed files with 3 additions and 2 deletions
|
|
@ -276,7 +276,7 @@ public class NetClient implements ApplicationListener{
|
|||
Events.fire(new PlayerChatEvent(player, message));
|
||||
|
||||
//log commands before they are handled
|
||||
if(message.startsWith(netServer.clientCommands.getPrefix())){
|
||||
if(message.startsWith(netServer.clientCommands.getPrefix()) && Config.logCommands.bool()){
|
||||
//log with brackets
|
||||
Log.info("<&fi@: @&fr>", "&lk" + player.plainName(), "&lw" + message);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -515,7 +515,8 @@ public class Administration{
|
|||
snapshotInterval = new Config("snapshotInterval", "Client entity snapshot interval in ms.", 200),
|
||||
autoPause = new Config("autoPause", "Whether the game should pause when nobody is online.", false),
|
||||
roundExtraTime = new Config("roundExtraTime", "Time before loading a new map after the gameover, in seconds.", 12),
|
||||
maxLogLength = new Config("maxLogLength", "The Maximum log file size, in bytes.", 1024 * 1024 * 5);
|
||||
maxLogLength = new Config("maxLogLength", "The Maximum log file size, in bytes.", 1024 * 1024 * 5),
|
||||
logCommands = new Config("logCommands", "Whether player commands should be logged.", true);
|
||||
|
||||
public final Object defaultValue;
|
||||
public final String name, key, description;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue