
CommandsSpy
Log commands executed by Players and other sources to the server console.
Screenshots

About this Mod
CommandsSpy
A mod to log commands to the server console. Both existing and non-existing commands are logged. Commands that are permitted or not are added to the server logs as well.
Installation
Simply place the mod into the mods directory of your server, and it will start monitoring executed commands.
On startup, the config file will be created automatically.
Examples
Player "Ultra_MC" executing "/gamemode creative" command is logged without arguments in server logs when using config "logArguments": false (default):
[18:57:06] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] gamemode
Player "Ultra_MC" executing "/gamemode creative" command is logged with arguments in server logs when using config "logArguments": true:
[18:57:06] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] gamemode creative
Player "Ultra_MC" executing "/op" command is logged in server logs:
[18:56:38] [Server thread/INFO]: [CommandsSpy] [Player: Ultra_MC] op
Server console executing "/list" is logged in server logs:
[18:53:02] [Server thread/INFO]: [CommandsSpy] [Server] list
RCON executing "/save-all" is logged in server logs:
[09:25:01] [Server thread/INFO]: [CommandsSpy] [Rcon] save-all
Configuration
Config file config/commands-spy.json
Initial config
{
"blacklist": [],
"logArguments": false
}
blacklist
To prevent logging certain commands, add them to the blacklist.
Example - to maintain privacy of players' conversations, you can avoid logging commands tell and t.
"blacklist": ["tell", "t"]
log arguments
Command arguments are not logged by default: "logArguments": false.
Example: /a b c - [CommandsSpy] [Player: Ultra_MC] a
To log arguments of all commands, use "logArguments": true.
Example: /a b c - [CommandsSpy] [Player: Ultra_MC] a b c
Available Versions
How to Install CommandsSpy on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).
Install Mod
Open the mod browser in the dashboard and search for "CommandsSpy". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.1, 1.21
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
CommandsSpy server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.
Is CommandsSpy compatible with fabric?
CommandsSpy officially supports fabric for Minecraft 1.21.1, 1.21. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with CommandsSpy – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CommandsSpy consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install CommandsSpy with just one click on your server.