
Modrinth · Minecraft mod
CommandsSpy
Log commands and commands' arguments executed by Players, Server Console, and RCON to the server console and server logs file.
Quick answer
Which CommandsSpy release matches 1.21.9 Forge?
CommandsSpy 1.8.0+mc1.21.6-26.2-forge targets 1.21.6, 1.21.7, 1.21.8 with Forge. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.
Where it goes
Is CommandsSpy required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does CommandsSpy 1.8.0+mc1.21.6-26.2-forge need?
1.8.0+mc1.21.6-26.2-forge on 1.21.9 Forge. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add CommandsSpy without breaking your instance.
Built for CommandsSpy 1.8.0+mc1.21.6-26.2-forge on 1.21.9 Forge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.8.0+mc1.21.6-26.2-forge. It targets 1.21.6, 1.21.7, 1.21.8 with Forge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.8.0+mc1.21.6-26.2-forge. It opens that exact file at the source.
About this project
What does CommandsSpy add?
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
Project description from Modrinth.
Pick your setup
CommandsSpy by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.2
4 loader builds26.1.2
4 loader builds26.1.1
4 loader builds26.1
4 loader builds1.21.11
4 loader builds1.21.10
4 loader builds1.21.9
4 loader builds1.21.8
4 loader builds1.21.7
4 loader builds1.21.6
4 loader builds1.21.5
4 loader buildsShowing the newest 12 of 48 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
CommandsSpy versions and loaders
1.8.0+mc1.21.6-26.2-forge
commandsspy-1.8.0+mc1.21.6-26.2-forge.jar
24 Aug 2026
1.7.1+mc1.21.6-26.2-forge
commandsspy-1.7.1+mc1.21.6-26.2-forge.jar
22 Aug 2026
1.7.0+mc1.21.6-26.2-forge
commandsspy-1.7.0+mc1.21.6-26.2-forge.jar
22 Aug 2026
1.6.0+mc1.21.6-26.2-forge
commandsspy-1.6.0+mc1.21.6-26.2-forge.jar
20 Aug 2026
Looking for an older file? The official Modrinth project page is in Resources.