Closes #10537
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user