This commit is contained in:
Anuken 2025-04-04 15:08:15 -04:00
parent 02364029da
commit c6262f5211
2 changed files with 3 additions and 2 deletions

View file

@ -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);
}

View file

@ -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;