@Commands
Logs @commands executed by staff members to Discord
The AtCommandScript handles logging of @commands (GM commands) executed in-game to Discord for audit purposes.
Action
at_command
When It's Used
This script is triggered when:
A player executes any @command (e.g.,
@warp,@item,@ban)The player's group ID meets or exceeds the configured minimum
@command logging is enabled in the server configuration
Why Use It
Audit GM activity to ensure staff members are following guidelines
Track abuse by logging all privileged commands
Maintain accountability with permanent Discord logs
Monitor server administration in real-time
Server Configuration
In conf/channels.conf:
enabled
Enable/disable @command logging
false
channel_id
Discord channel ID for command logs
-
group_min
Minimum GM group level to log
1
group_max
Maximum GM group level to log
99
Tip: Set group_min: 99 to only log admin commands, or group_min: 1 to log all staff activity.
Message Format
The script sends formatted messages to Discord:
Format: Account ID | Char ID | Character Name | Command | Time
Data Fields
name
string
Name of the character executing the command
command
string
The full @command with arguments
account_id
int
Player's account ID
char_id
int
Player's character ID
pos
string
Player's location: `map
channel
string
Discord channel ID
Example Use Cases
Log All Staff Commands
Set a low group threshold to log all staff activity:
Admin-Only Logging
Only log commands from administrators:
Private Audit Channel
Send logs to a restricted channel only visible to senior staff:
Custom Messages
Want to customize how these messages look? Head to the Message Routes page on your dashboard, set the format to Custom Message, and compose your own template using {{placeholder}} syntax.
Example template:
Available placeholders for this event:
{{player_name}}
Marky
{{command}}
@storage
{{src_template}}
🔸 Command Log: Marky | @storage
See Message Routing for more about formats, conditions, and multi-channel routing.
Notes
Commands are logged with full arguments for complete audit trails
Logs include timestamps for tracking when commands were executed
Use with @request logging for comprehensive staff monitoring
Last updated
