CommandSpy
by samolego
CommandSpy logs commands that players run through command blocks, signs and the console, so server staff can see them.
What it does
On a server, CommandSpy records commands as they execute and sends the output to players who hold the permission to receive it. Logged entries name the source of each command: a command block, a sign, or a player, with the executor's position and UUID included. Staff can follow activity without reading the full server log.
The mod can be configured to ignore specific commands through a blacklist, and its messages can be customised or disabled in a generated config file. It supports LuckPerms for permission checks, and access to the output depends on the permission each player holds rather than on operator status alone. The author notes that the mod loads with a logToOps option that is now redundant.
CommandSpy is a server-side mod: only the server needs it, and players join without installing anything. It is published for Fabric and Quilt across seven game versions, 1.16.5 – 1.20, and the latest file for both loaders is 1.3.3 for 1.20, released on 2023-06-11. The code is open source under the MIT License.
Key features
Command execution logs
Commands run by command blocks, signs, players and the console are recorded as they execute.
Executor details
Each log entry includes the executor's position and player UUID where one applies.
Command blacklist
Specific commands can be excluded from logging through the blacklist setting.
Configurable messages
Messages can be customised or turned off through a generated config file.
LuckPerms support
Permission checks can go through LuckPerms, so access to command output follows the permissions set there.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Auditing command blocks
Staff can see which command blocks ran a command and from what position, which helps track down unexpected changes.
Monitoring sign commands
Commands triggered from signs appear in the log with the sign as the source.
Who it’s for: Server owners and administrators who want a record of commands run through command blocks, signs and players. Players only need it if they run the server themselves.
How it compares
Logtellraw Command is a Fabric mod for 1.18 – 26.2, server-side only, released under the MIT License and open source. Mod Info Command is a Fabric mod for 1.16.5 only, server-side only, under the BSD 3-Clause License and open source. Clear-fix covers 1.20.1 – 1.21.1 on Fabric and Quilt, with the server required and the client optional, under the GNU General Public License v3.0 only.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| CommandSpy | Fabric and Quilt | 1.16.5 – 1.20 | Server-side only | 2023-06-11 |
| Logtellraw Command | Fabric | 1.18 – 26.2 | Server-side only | 2026-04-06 |
| Mod Info Command | Fabric | 1.16.5 | Server-side only | 2021-04-10 |
| Clear-fix | Fabric and Quilt | 1.20.1 – 1.21.1 | Server required, client optional | 2024-08-21 |
Questions
Does CommandSpy need to be installed on the client?
Which loaders does CommandSpy support?
Can CommandSpy work with LuckPerms?
In the catalog
CommandSpy is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 10,288 mods support Minecraft 1.20.
More from samolego
Similar mods
What the author says
Feeling like you need to have control over what commands players are using on your server? Need to destroy that nasty repeating command block sending /kill @e? A mod that logs commands, executed by players, command blocks and signs to console / players. Additionally, position of executor block and player uuid is…
Official listing
- Modrinth page
- modrinth.com/mod/commandspy
- Owner
- samolego
- Published
- 2021-03-23
- Updated on Modrinth
- 2023-06-11
- Facts verified
- 2026-10-15