Ban System
Guardex includes a comprehensive ban system to manage player bans effectively. This system allows you to ban players permanently or temporarily, track ban information, and manage appeals.
Ban Types
| Type | Description |
|---|---|
| Permanent | Ban with no expiration date (duration = 0) |
| Temporary | Ban with a specified duration (in seconds) |
Ban Information
Each ban includes the following information:
- Ban ID: Unique identifier for each ban (format: GX-XXXXX)
- Player Name: Name of the banned player
- Reason: Reason for the ban
- Admin: Name of the admin who issued the ban
- Ban Time: When the ban was issued
- Unban Time: When the ban will expire (if temporary)
- Identifiers: Steam, license, Discord, and IP of the banned player
Banning a Player
There are several ways to ban a player:
Using the Admin Panel
- Open the admin panel with
/gx - Navigate to the "Players" tab
- Find the player you want to ban
- Click the "Ban" button
- Enter the reason and duration
- Click "Confirm"
Using the Ban Command
Use the /gxban command:
/gxban [id] [reason] [duration]Example: /gxban 1 "Cheating" 86400 (bans player 1 for "Cheating" for 1 day)
Auto-Ban
Players can be automatically banned when certain cheats are detected. This is configured in the Config.AutoBan section of the config file.
Unbanning a Player
There are two ways to unban a player:
Using the Admin Panel
- Open the admin panel with
/gx - Navigate to the "Bans" tab
- Find the ban you want to remove
- Click the "Unban" button
- Enter the reason for the unban
- Click "Confirm"
Using the Unban Command
Use the /gxunban command:
/gxunban [ban_id] [reason]Example: /gxunban GX-12345 "False positive"
Ban Appeals
Players can appeal their bans by visiting the URL specified in Config.AppealURL. This URL is displayed to players when they attempt to connect while banned.
To set up a custom appeal URL:
Config.AppealURL = "your-server-website.com/appeal"Ban Evasion Prevention
Guardex stores multiple identifiers for each banned player (Steam, license, Discord, IP) to prevent ban evasion. If a player attempts to connect with any of these identifiers, they will be prevented from joining the server.