Rank System
This document details the configuration settings for the rank system.
Structure Overview
The rank configuration uses a hierarchical structure where each rank defines its cost and associated rewards.
Base Structure
"Use Parent for Rank": true,
"Announce Rank Up": false,
"Enable Rank Down": true,
"Ranks": {
"rankName": {
"Prefix": string,
"Suffix": string,
"Chat Color": [number, number, number],
"Cost": number,
"Permission": string,
"Reward": {
"itemID": quantity
}
}
}
Use Parent for Rank
Type
Boolean
Description
Determines if the rank should inherit properties from a parent rank
Default
true
Valid Values
true/false
Announce Rank Up
Type
Boolean
Description
Determines if a message should be sent to all players when a player ranks up
Default
false
Valid Values
true/false
Enable Rank Down
Type
Boolean
Description
Determines if rank down is enabled
Default
true
Valid Values
true/false
Fields Description
Rank Name
Type
String
Usage
Unique identifier for each rank
Example
"Rank1", "Rank2"
Prefix
Type
String
Description
Text displayed before the player's name
Example
"[VIP]"
Suffix
Type
String
Description
Text displayed after the player's name
Example
"[Hero]"
Chat Color
Type
Array of Numbers
Description
RGB values defining the chat color for the rank
Example
[255, 0, 0] for red
Cost
Type
Number
Description
Amount of currency required to obtain the rank
Must be
Positive number
Permission
Type
String
Description
Permission string associated with the rank
Example
"rank.vip"
Rewards
Type
Object
Format
Key-value pairs where key is item ID and value is quantity
Description
Items and quantities given when rank is obtained
Example Configuration
{
"Use Parent for Rank": true,
"Announce Rank Up": false,
"Enable Rank Down": true,
"Ranks": {
"Rank1": {
"Prefix": "[i:4444] [c/FFFFFF:Adventurer] ",
"Suffix": "",
"Chat Color": [
255,
255,
255
],
"Cost": 1000,
"Permission": "adventurer a.openchest",
"Reward": {
"1": 1,
"2": 2
}
},
"Rank2": {
"Prefix": "[i:2751] [c/4B73F6:Traveler] ",
"Suffix": "",
"Chat Color": [
121,
152,
253
],
"Cost": 5000,
"Permission": "traveler",
"Reward": {
"1": 1,
"2": 2
},
}
}
}
Configuration Notes
Each rank name must be unique
Costs should increase with higher ranks
Item IDs in rewards must be valid item identifiers
Reward quantities must be positive numbers
Multiple rewards can be specified for each rank
Ranks are typically processed in order
Higher ranks typically have better reward ratios
Important Note
A server restart is required after modifying the
Use Parent for Rank
setting to ensure changes take effect.Always backup your configuration files before making changes.
Test the configuration in a development environment if possible.
Best Practices
Use descriptive rank names
Maintain balanced cost progression
Scale rewards appropriately with rank cost
Keep reward quantities reasonable
Document item IDs used in rewards
Last updated