Skip to content

CommandsSpy

Log commands and commands' arguments executed by Players, Server Console, and RCON to the server console and server logs file.

FabricNeoForgeForgeQuilt
Loaders
FabricNeoForgeForgeQuilt
Downloads on Modrinth
1.8K
Followers on Modrinth
9
versions
55
Updated
October 19, 2026Oct 19
Published
in 2024
Example of all logged commands by CommandsSpy · swipe

At a glance

Runs on Fabric, NeoForge, Forge and Quilt
For Minecraft 1.14–26.3
Server only — players don't need to install it
Latest version — 1.8.0+mc1.20.2-26.3-neoforge from October 19, 2026
License MIT — free
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.14–26.3

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

FAQ

How to install CommandsSpy?

Install Fabric for your Minecraft version, download CommandsSpy for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does CommandsSpy support?

CommandsSpy has builds for Minecraft 1.14–26.3.

Is CommandsSpy needed on the server?

Server only — players don't need to install it

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More