Works for Minecraft 1.21.4
Removed test message in the console that was left in accidentally.
Minecraft 1.21 and bug fixes
Added an option to change the log folder the mod uses. Example config:
{
"maxMessages": 1000,
"operatorRequired": true,
"logFolder": "custom_logs_folder"
}
To change the log folder location, you can read here how to use a custom log4j config, and in Minecraft's official config you could change the folder location, and add that in the run argument.
I purely added this because a server provider did not want me to store my logs, and this was a way around that.
Fixed bug where messages were sent in backwards order with custom setting for amount of messages. Changed default length to 1000 to reduce lag.
Added config for max messages and operator requirement. (There was a v1.1 and v1.2, but I forgot to add one and removed the other.)