
lognotes
Create an advanced Minecraft server mod that adds a command /log start <player> to begin tracking a specific player. While active, the system must record...
LogNotes - Player Command Logger
Overview
LogNotes is a server-side mod that lets admins track and record every command a specific player runs. Perfect for keeping an eye on suspicious activity, reviewing player behavior, or just keeping detailed server logs for specific users.
Features
- Track individual players and record all their commands
- Logs include timestamp, world name, coordinates, and full command with arguments
- Automatic log rotation when files get too big
- Auto-cleanup of old logs based on your settings
- Protects sensitive commands (passwords, auth) by hiding arguments
- Configurable blacklist/whitelist for which commands to log
- Logs saved per-player, per-day in easy-to-read text files
How to Use
Commands (requires OP level 2+)
Start tracking a player:
/log start <player_name>
Example: /log start Steve
Stop tracking a player:
/log stop <player_name>
Example: /log stop Steve
See who's being tracked:
/log status
Shows a list of all currently tracked players.
View logs for a player:
/log list <player_name> <date>
Example: /log list Steve 2024-01-15
Reload configuration (OP level 4):
/log reload
Where Logs Are Stored
Logs are saved in your server's logs/lognotes/ folder. Each player gets their own folder (either by UUID or name, based on config), with daily log files named like 2024-01-15.txt.
Tips & Tricks
- Use
/log statusbefore restarting the server to see who you're tracking - the mod remembers between restarts! - Check the config file to change how logs are formatted, set auto-cleanup days, or switch between UUID/name folders
- Sensitive commands like
/loginor/passwordhave their arguments hidden automatically to protect privacy - You can blacklist certain commands (like
/help) so they don't clutter your logs
Known Limitations
- Only works on NeoForge servers (not Fabric, Paper, or Spigot)
- Player must be online to start tracking them
- Very long command outputs in
/log listmay be truncated (check the actual file for full logs)