Overview
The Prefixes Plugin handles rank displays on your servers. Every player belongs to a group, and that group defines how the player appears in chat, in the tab list and above their head. The plugin:- Applies prefixes, suffixes, colors and display names to chat, tab list and name tags
- Reads groups either from its own
config.ymlor from LuckPerms - Syncs chat messages and tab list entries across the servers of your network
- Provides an API to read prefix data and register custom groups
Supported Software
Want to add support for another server software? Submit a pull request on
GitHub!
Quick Setup
- Download the plugin from GitHub
- Place it in your server template’s plugins folder
- Start your server
- Edit
config.ymlandmessages.ymlto your needs
Configuration
config.yml
The main configuration file. It controls the group source, the groups themselves, individual plugin features and cross-server sync.source is LUCKPERMS, every value is read from the LuckPerms group:
Placeholders
Here is a list of all available placeholders.Feature switches
Usefeatures to enable or disable each local part of the plugin:
chatformats local chat messages with the group’schat-formattablistapplies the group’s prefix, suffix, color and priority to the tab listdisplay-nameapplies the configureddisplay-name; when disabled, the normal Minecraft name is used
Cross-server sync
Sync can share two things over the SimpleCloud network:- Chat: formatted chat messages from players on other servers
- Tab list: tab list entries for players on other servers
sync.enabled to false to disable all cross-server communication without disabling local formatting. Under channels, choose whether chat, tab list entries or both are synchronized. A channel only works when its matching option under features is also enabled.
The sources list controls which servers this server receives updates from:
CURRENTreceives updates from the current server group, or only this persistent server when running as a persistent serverALLreceives updates from every server in the network and must be the only list entry- A server group name or persistent server ID receives updates from that specific source
Commands
API
The API lets you read the prefix data of a player and register your own groups.Dependency
Access the API
- Paper
Player Management
Get the group of a player:Group Management
List all groups, highest priority first:Best Practices
- Keep priorities unique so the tab list order stays predictable
- Give every group the same
chat-formatunless a rank should visibly stand out in chat - Use
<color>indisplay-nameandchat-formatinstead of repeating hex codes - Point
default-groupat a group with an emptypermissionso every player matches something