"Log command usage" setting not workingFixed
I have "Log command usage" set to false in the json, but it still logs the command usage.
Did you reload the plugin after changing the config?
Yes, I've been using the plugin for three months now with daily restarts. The log files for commands in particular are huge compared to the others and I go through and delete them every week or so. Should I try '0' instead of 'false'?

Pretty sure the syntax is correct, here's the json:

{
"Log chat messages (true/false)": true,
"Log command usage (true/false)": false,
"Log player connections (true/false)": true,
"Log player disconnections (true/false)": true,
"Log player respawns (true/false)": true,
"Log when crafting started (true/false)": true,
"Log when crafting cancelled (true/false)": true,
"Log when crafting finished (true/false)": true,
"Log items dropped by players (true/false)": true,
"Log output to console (true/false)": false,
"Rotate logs daily (true/false)": false,
"Command list (full or short commands)": [],
"Command list type (blacklist or whitelist)": "blacklist"
}
In response to NekidCheze ():
Yes, I've been using the plugin for three months now with daily restarts. The log files for commands...
Is it chat commands you are trying to stop from logging?
trying to stop command logging altogether
In response to NekidCheze ():
trying to stop command logging altogether
Right, but I was asking you about chat commands specifically because the setting isn't used with those at the moment.
it's not a big deal, it still works great overall and thanks for creating the plugin. Just feels like something that might have an easy fix.
In response to NekidCheze ():
it's not a big deal, it still works great overall and thanks for creating the plugin. Just feels lik...

In the .cs file, replace the existing:

            if (!config.LogCommands) Unsubscribe("OnServerCommand");

With:

            if (!config.LogCommands)
            {
                Unsubscribe("OnPlayerCommand");
                Unsubscribe("OnServerCommand");
            }
I'm not sure I understand your question. The commands log just shows a bunch of server garbage that unfortunately I cannot show you right now because I just deleted them all.

Merged post

it's the server commands I'm trying to mute

Merged post

still not sure if I'm following you. Kinda just went over my head. I figure out the config files well enough. Not sure the difference with player, server or chat you're asking about.

Merged post

k, will try, thank you Wulf!
I did just test the plugin though, commands are only being logged with the setting set to true. I am using the above changes, but that wouldn't matter in my case as I'm running a server command.
ok, just repopulated the command log. I'm getting a serverinfo echo every second from my RCON through github.

So it logs this every second:
[1/18/2019 8:55:21 PM] (my IP) ran command: serverinfo

and as you can imagine, it gets to be a pretty big file.
In response to NekidCheze ():
ok, just repopulated the command log. I'm getting a serverinfo echo every second from my RCON throug...
You'd also need to exclude the OnRconCommand hook:
            if (!config.LogCommands)
            {
                Unsubscribe("OnPlayerCommand");
                Unsubscribe("OnRconCommand");
                Unsubscribe("OnServerCommand");
            }​


I'll add these changes in an upcoming version. You can also add "serverinfo" to the blacklist in the config.

Booyaah! That did it!

You're awesome! ^^

Thanks Wulf!
"Log command usage (true/false)": false,

yet I still have a new command log
Did you reload the plugin after the change? Could you provide a screenshot of the output you are seeing?
Locked automatically