Weight & Priority
Weight is a numerical value assigned to groups that determines their priority. Higher weight means higher priority for display purposes and conflict resolution.
What is Weight?
Every group has a weight value (a number). This weight is used to:
- Determine prefix/suffix display - Highest weight group's prefix is shown
- Resolve permission conflicts - When multiple groups have conflicting permissions
- Sort groups - In lists and the web editor
Setting Weight
| Command | Description |
|---|---|
/hp group setweight <group> <weight> | Set group weight |
/hp group setweight default 0
/hp group setweight vip 20
/hp group setweight mod 50
/hp group setweight admin 90
/hp group setweight owner 100Recommended Weight Ranges
We recommend using a 0-100 scale for clarity, but any numbers work:
| Range | Suggested Use |
|---|---|
| 0-10 | Default/base groups |
| 10-30 | Donor ranks (VIP, VIP+) |
| 30-50 | Junior staff (Helper, Trainee) |
| 50-70 | Moderators |
| 70-90 | Senior staff, Admins |
| 90-100 | Owner, Super Admin |
Weight and Prefix/Suffix Display
When a player belongs to multiple groups, the prefix and suffix from the highest-weight group is displayed in chat.
# Steve belongs to:
# - mod (weight: 50, prefix: "&9[Mod] ")
# - vip (weight: 20, prefix: "&a[VIP] ")
# In chat, Steve's prefix will be: "[Mod] "
# Because mod has higher weight (50 > 20)Prefix Priority Override
Groups also have a prefixPriority and suffixPriority that can override weight for display purposes:
# Example: Show VIP prefix even for mods who are also VIP
# (Maybe they want to show off their donation status)
# Set VIP's prefix priority higher than its weight
# prefixPriority is checked first; if equal, weight is usedWeight and Permission Conflicts
When a player has the same permission from multiple groups with different values, weight helps determine which value is used:
# Steve belongs to:
# - admin (weight: 90)
# - builder (weight: 25)
# Both groups have fly.enable:
# - admin: fly.enable: true
# - builder: fly.enable: false
# Resolution: admin wins (higher weight)
# Steve has fly.enable: trueWeight vs Track Order
Weight and track order are independent:
- Weight - Determines priority for display and conflicts
- Track Order - Determines promotion/demotion sequence
# These are different things:
# Weight determines: "Which group is more important?"
# Track order determines: "What's the next rank when promoted?"
# Example where they might differ:
# Special "builder" group with high permissions (weight: 60)
# Not part of any track - given manually to trusted builders
# Staff track: helper(30) → mod(50) → admin(80)
# Builder has higher weight than mod, but isn't in the staff trackWeight and Inheritance
Weight affects how inherited permissions are resolved when there are conflicts from multiple parent groups:
# Group "mod" inherits from both:
# - vip (weight: 20)
# - helper (weight: 30)
# If vip has: chat.color: true
# And helper has: chat.color: false
# mod gets: chat.color: false
# Because helper has higher weight (30 > 20)Direct permissions on the group itself always override inherited ones, regardless of the parent's weight.
Viewing Group Weight
| Command | Description |
|---|---|
/hp group info <group> | View group details including weight |
/hp group list | List groups (shown in weight order) |
/hp group info admin
# Output:
# Group: admin
# Display Name: Administrator
# Weight: 90
# Prefix: &c[Admin]
# ...Best Practices
Use Consistent Spacing
Leave room for future ranks:
# Good - leaves room to insert ranks
default: 0
vip: 20
mod: 50
admin: 80
owner: 100
# Later you can add:
vip+: 25 (between vip and mod)
senior-mod: 65 (between mod and admin)Match Weight to Importance
Higher ranks should have higher weights:
# Correct - weight reflects hierarchy
owner: 100 (most important)
admin: 80
mod: 50
vip: 20
default: 0 (least important)Consider Multiple Tracks
When players can be in groups from different tracks:
# Staff track weights
helper: 30
mod: 50
admin: 80
# Donor track weights
vip: 20
vip+: 25
mvp: 28
# Staff weights are higher, so staff prefix shows
# even if player is also in donor rankDebugging Weight Issues
If the wrong prefix is showing or permissions seem off:
# Check the player's groups and their weights
/hp user info <player>
# Check each group's weight
/hp group info <group>
# Make sure higher ranks have higher weights
# Look for groups with unexpectedly high/low weightsExample: Complete Weight Setup
# Base groups
/hp group setweight default 0
/hp group setweight guest 5
# Donor ranks
/hp group setweight vip 20
/hp group setweight vip-plus 25
/hp group setweight mvp 28
# Junior staff
/hp group setweight helper 35
/hp group setweight trial-mod 40
# Staff
/hp group setweight mod 50
/hp group setweight senior-mod 60
# Administration
/hp group setweight admin 80
/hp group setweight head-admin 90
/hp group setweight owner 100See Also
- Groups - Creating and managing groups
- Inheritance - How weight affects inheritance
- Tracks - Track order vs weight
- Group Commands - Setting weight and other properties