Back to mods
CommandsSpy project artwork

Modrinth · Minecraft mod

CommandsSpy

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which CommandsSpy release matches 1.21.9 Forge?

Updated 2 days ago
Best match for your filters 1.8.0+mc1.21.6-26.2-forge
Game version 1.21.6, 1.21.7, 1.21.8
Loader 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.

Client Not supported
Dedicated server Required
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

No extra mods listed for this file

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.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 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.

159 available setups

Showing 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

4 of 52 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.