Access Levels Overview
Access levels control what commands and abilities each administrator tier can use. They are configured in:Access Level Structure
Each access level defines:- Level: Numeric identifier (-1 to 100)
- Name: Descriptive role name
- Name Color: Character name color in hex
- Title Color: Character title color in hex
- Child Access: Inherited permissions from lower level
- Permissions: Specific capabilities (isGM, allowPeaceAttack, etc.)
dist/game/config/AccessLevels.xml:2
Default Access Levels
Level -1: Banned
Level -1: Banned
Purpose: Punished/banned accountsPermissions:
- Name Color:
FFFFFF(white) - Title Color:
ECF9A2(light yellow) isGM: falseallowPeaceAttack: falseallowTransaction: falsegiveDamage: falsetakeAggro: falsegainExp: false
Level 0: User
Level 0: User
Purpose: Regular playersPermissions:
- Name Color:
FFFFFF(white) - Title Color:
ECF9A2(light yellow) isGM: falseallowTransaction: truegiveDamage: truetakeAggro: truegainExp: true
Level 10: Chat Moderator
Level 10: Chat Moderator
Purpose: Moderation of chat/social featuresPermissions:
- Inherits from: User (level 0)
- Name Color:
FFFFFF(white) - Limited administrative powers
- Can moderate chat but not modify game state
Suitable for community moderators who don’t need full GM powers.
Level 20: Test GM
Level 20: Test GM
Purpose: Testing and developmentPermissions:
- Inherits from: Chat Moderator (level 10)
- Name Color:
FFFFFF(white) allowFixedRes: trueallowAltg: true (Alt+G command)giveDamage: falsegainExp: false
Level 30: General GM
Level 30: General GM
Purpose: Standard game masterPermissions:
- Inherits from: Test GM (level 20)
- Name Color:
0000C0(blue) - Title Color:
0000C0(blue) - Standard GM capabilities
- Cannot trade or gain experience
Level 40: Support GM
Level 40: Support GM
Purpose: Player support and assistancePermissions:
- Inherits from: General GM (level 30)
- Name Color:
000C00(dark green) - Title Color:
000C00(dark green) - Enhanced support capabilities
Level 50: Event GM
Level 50: Event GM
Purpose: Event management and coordinationPermissions:
- Inherits from: Support GM (level 40)
- Name Color:
00C000(green) - Title Color:
00C000(green) - Event-specific powers
Level 60: Head GM
Level 60: Head GM
Purpose: Senior administratorPermissions:
- Inherits from: Event GM (level 50)
- Name Color:
0C0000(dark red) - Title Color:
0C0000(dark red) allowTransaction: truegiveDamage: truetakeAggro: truegainExp: true
Level 70: Admin
Level 70: Admin
Purpose: Full server administratorPermissions:
- Inherits from: Head GM (level 60)
- Name Color:
0FF000(bright green) - Title Color:
0FF000(bright green) isGM: trueallowPeaceAttack: true- Full administrative access
Level 100: Master
Level 100: Master
Purpose: Server owner/master administratorPermissions:
- Inherits from: Admin (level 70)
- Name Color:
00CCFF(cyan) - Title Color:
00CCFF(cyan) isGM: true- Unrestricted access to all commands
Permission Flags
Core Permissions
isGM
Identifies user as game master. Required for most admin commands.
allowPeaceAttack
Allows attacking in peace zones and non-PvP areas.
allowFixedRes
Enables fixed resurrection (no penalties).
allowTransaction
Permits trading and economic transactions.
allowAltg
Grants access to Alt+G admin panel.
giveDamage
Ability to deal damage to other entities.
takeAggro
Whether NPCs can aggro this character.
gainExp
Whether character gains experience points.
Admin Command Permissions
Commands are restricted by access level in:Command Access Control
Each command specifies minimum required access level:Customize command access levels to match your server’s security policy.
GM List Visibility
GM List Management
Control whether GMs appear in the/gmlist command:
handlers/admincommandhandlers/AdminAdmin.java:55
GM List Implementation
GM List Implementation
gmliston: GM assistance mode (players can see you)gmlistoff: Invisible monitoring mode
Punishment System
Punishment Types
The server supports multiple punishment mechanisms:Character Ban
Character Ban
Prevents specific character from logging in.Command:
//ban_char <character_name>Affect: Single character onlySource: handlers/admincommandhandlers/AdminPunishment.java:369Account Ban
Account Ban
Blocks entire account from accessing server.Command:
//ban_acc <account_name>Affect: All characters on accountSource: handlers/admincommandhandlers/AdminPunishment.java:385IP Ban
IP Ban
Blocks all connections from IP address.Protection: Validates against localhost and server IPSource:
handlers/admincommandhandlers/AdminPunishment.java:293HWID Ban
HWID Ban
Hardware-based ban (bypasses IP changes).Command:
//ban_hwid <hardware_id>Source: handlers/admincommandhandlers/AdminPunishment.java:401Chat Ban
Chat Ban
Restricts chat without blocking gameplay.Command:
//ban_chat <player_name>Source: handlers/admincommandhandlers/AdminPunishment.java:417Jail
Jail
Imprisons character in jail zone.Command:
//jail <player_name>Source: handlers/admincommandhandlers/AdminPunishment.java:433Punishment Expiration
Punishments can be temporary or permanent:key: Username, character name, IP, or HWIDaffect: ACCOUNT, CHARACTER, IP, or HWIDtype: BAN, CHAT_BAN, or JAILminutes: Duration (-1 for permanent)reason: Explanation text
handlers/admincommandhandlers/AdminPunishment.java:222
Security Best Practices
GM Action Auditing
All administrative actions are logged:- GM character name and object ID
- Command executed
- Target player/entity
- Timestamp
handlers/admincommandhandlers/AdminPunishment.java:320
Protecting Server IP
The punishment system prevents banning the server’s own IP:handlers/admincommandhandlers/AdminPunishment.java:298
Database Security
Access Level Storage
Access levels are stored in the database: Table:characters
Column: accesslevel
Changing Access Levels
In-game command:Flood Protection
Protect against command spam indist/game/config/FloodProtector.ini:
Network Security
Connection Limits
Configure indist/game/config/Network.ini:
DDoS Protection
Implement at infrastructure level:- Use a firewall (iptables, UFW)
- Consider DDoS protection service
- Rate-limit incoming connections
- Monitor for unusual traffic patterns
Configuration Files Security
File Permissions
Restrict access to configuration files:Sensitive Data
Related Documentation
Admin Commands
Complete command reference
Monitoring
Audit logs and monitoring
Troubleshooting
Security-related issues