Admin Commands
Guardex provides several admin commands to manage the anticheat system. These commands are only available to players with the guardex.admin ACE permission.
| Command | Description |
|---|---|
/gx | Open the admin panel |
/gxban [id] [reason] [duration] | Ban a player |
/gxunban [ban_id] [reason] | Unban a player |
/gxtestwebhook [type] | Test webhook functionality |
/gxdebug | Test if the admin menu works |
Command Details
/gx
Opens the Guardex admin panel. This panel provides a graphical interface to manage the anticheat system.
Alternatively, you can press F9 (default key) to open the admin panel.
/gxban [id] [reason] [duration]
Bans a player from the server.
[id]: The player's server ID[reason]: The reason for the ban[duration]: The duration of the ban in seconds (0 for permanent)
Example: /gxban 1 "Cheating" 86400 (bans player 1 for "Cheating" for 1 day)
/gxunban [ban_id] [reason]
Unbans a player from the server.
[ban_id]: The ban ID (format: GX-XXXXX)[reason]: The reason for the unban
Example: /gxunban GX-12345 "False positive"
/gxtestwebhook [type]
Tests the webhook functionality.
[type]: The type of webhook to test (connect, ban, detection, trigger, all)
Example: /gxtestwebhook all
/gxdebug
Tests if the admin menu works. This command is useful for troubleshooting issues with the admin panel.
Permission Requirements
To use these commands, you must have the guardex.admin ACE permission. This can be granted by adding the following to your server.cfg:
# Add ACE permissions for admins
add_ace group.admin guardex.admin allow
# Add your admin to the group
add_principal identifier.license:YOUR_LICENSE_HERE group.admin