CommandsSpy

CommandsSpy

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

1 917 downloads 11 followers

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

Version Minecraft Loader Download

1.8.0+mc1.20.2-26.3-neoforge

1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2, 26.3
neoforge
Download

1.8.0+mc1.21.6-26.3-forge

1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2, 26.3
forge
Download

1.8.0+mc26.x-26.3

26.1, 26.1.1, 26.1.2, 26.2, 26.3
fabric, quilt
Download

1.8.0+mcb1.7.3-babric

b1.7.3
babric
Download

1.8.0+mc1.20.2-26.2-neoforge

1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
neoforge
Download

1.8.0+mc1.21.6-26.2-forge

1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
forge
Download

1.8.0+mc1.21.x-forge

1.20.6, 1.21, 1.21.1, 1.21.3, 1.21.4, 1.21.5
forge
Download

1.8.0+mc1.17-1.20.4-forge

1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4
forge
Download

1.8.0+mc1.16.x-forge

1.14.4, 1.15, 1.15.1, 1.15.2, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5
forge
Download

1.8.0+mc26.x

26.1, 26.1.1, 26.1.2, 26.2
fabric, quilt
Download

1.8.0+mc1.21.x

1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, quilt
Download

1.8.0+mc1.19-1.20.2

1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2
fabric, quilt
Download

1.8.0+mc1.14.x-fabric

1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2
fabric
Download

1.8.0+mc1.14.x

1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2
fabric, quilt
Download

1.8.0+bta7.3-8.0.1-bta

b1.7.3
bta-babric
Download

1.7.1+mcb1.7.3-babric

b1.7.3
babric
Download

1.7.1+mc1.20.2-26.2-neoforge

1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
neoforge
Download

1.7.1+mc1.21.6-26.2-forge

1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
forge
Download

1.7.1+mc1.21.x-forge

1.20.6, 1.21, 1.21.1, 1.21.3, 1.21.4, 1.21.5
forge
Download

1.7.1+mc1.17-1.20.4-forge

1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4
forge
Download

1.7.1+mc1.16.x-forge

1.14.4, 1.15, 1.15.1, 1.15.2, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5
forge
Download

1.7.1+mc26.x

26.1, 26.1.1, 26.1.2, 26.2
fabric, quilt
Download

1.7.1+mc1.21.x

1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, quilt
Download

1.7.1+mc1.19-1.20.2

1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2
fabric, quilt
Download

1.7.1+mc1.14.x-fabric

1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2
fabric
Download

1.7.1+mc1.14.x

1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2
fabric, quilt
Download

1.7.0+mcb1.7.3-babric

b1.7.3
babric
Download

1.7.0+mc1.20.2-26.2-neoforge

1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
neoforge
Download

1.7.0+mc1.21.6-26.2-forge

1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
forge
Download

1.7.0+mc1.21.x-forge

1.20.6, 1.21, 1.21.1, 1.21.3, 1.21.4, 1.21.5
forge
Download

1.7.0+mc1.17-1.20.4-forge

1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4
forge
Download

1.7.0+mc1.16.x-forge

1.14.4, 1.15, 1.15.1, 1.15.2, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5
forge
Download

1.7.0+mc26.x

26.1, 26.1.1, 26.1.2, 26.2
fabric, quilt
Download

1.7.0+mc1.21.x

1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, quilt
Download

1.7.0+mc1.19-1.20.2

1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2
fabric, quilt
Download

1.7.0+mc1.14.x

1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2
fabric, quilt
Download

CommandsSpy 1.6.0+mc1.21.6-26.2-forge

1.6.0+mc1.21.6-26.2-forge

1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
forge
Download

CommandsSpy 1.6.0+mc1.21.x-forge

1.6.0+mc1.21.x-forge

1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5
forge
Download

CommandsSpy 1.6.0+mc1.17-1.20.4-forge

1.6.0+mc1.17-1.20.4-forge

1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4
forge
Download

CommandsSpy 1.6.0+mc1.16.x-forge

1.6.0+mc1.16.x-forge

1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5
forge
Download

CommandsSpy 1.6.0+mc1.20.2-26.2-neoforge

1.6.0+mc1.20.2-26.2-neoforge

1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
neoforge
Download

CommandsSpy 1.6.0+mc26.x

1.6.0+mc26.x

26.1, 26.1.1, 26.1.2, 26.2
fabric, quilt
Download

CommandsSpy 1.6.0+mc1.21.x

1.6.0+mc1.21.x

1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, quilt
Download

CommandsSpy 1.6.0+mc1.19-1.20.2

1.6.0+mc1.19-1.20.2

1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2
fabric, quilt
Download

CommandsSpy 1.6.0+mc1.14.x

1.6.0+mc1.14.x

1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2
fabric, quilt
Download

CommandsSpy 1.4.0+mc26.x

1.4.0+mc26.x

26.1, 26.1.1, 26.1.2, 26.2
fabric, quilt
Download

CommandsSpy 1.4.0+mc1.21.x

1.4.0+mc1.21.x

1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, quilt
Download

CommandsSpy 1.4.0+mc1.19-1.20.2

1.4.0+mc1.19-1.20.2

1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2
fabric, quilt
Download

CommandsSpy 1.4.0+mc1.14.x

1.4.0+mc1.14.x

1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2
fabric, quilt
Download

CommandsSpy 1.3.0+mc26.x

1.3.0+mc26.x

26.1, 26.1.1, 26.1.2, 26.2
fabric
Download

CommandsSpy 1.3.0+mc1.21.x

1.3.0+mc1.21.x

1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric
Download

CommandsSpy 1.3.0+mc1.19-1.20.2

1.3.0+mc1.19-1.20.2

1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2
fabric
Download

CommandsSpy 1.3.0+mc1.14.x

1.3.0+mc1.14.x

1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2
fabric
Download

CommandsSpy 1.1.0

1.1.0

1.21.1
fabric
Download

CommandsSpy 1.0.0

1.0.0

1.21.1
fabric
Download