Skip to main content

Supported software

Install the plugin

1

Install the server plugins

Download Prefixes from GitHub and place it in the Paper server template’s plugins/ folder. Standard SimpleCloud templates already include simplecloud-api; add it through the target’s Plugins setting or the CLI if you use a custom template.Install LuckPerms as well if you plan to use general.source: LUCKPERMS.
2

Generate the configuration

Start a matching server. Prefixes creates config.yml and messages.yml under plugins/simplecloud-prefixes/.
3

Keep the configuration in the template

For a group server, copy plugins/simplecloud-prefixes/ from the running server to the same path in its template before the server stops. Then edit the template copy.See Templates for the complete workflow.
4

Apply and verify the configuration

Run /scprefix reload after editing files on a running server. If you edited the template, start a new server instead.
Join the server and confirm that your group prefix appears in chat, the tab list, and your display name for each enabled feature.

Configuration

Every player belongs to a group whose settings define these displays. Prefixes reads groups from its own configuration or from LuckPerms.

config.yml

The main configuration file controls the group source, group definitions, individual features, and cross-server synchronization.
LuckPerms mapping When source is LUCKPERMS, every value is read from the LuckPerms group:

Placeholders

The following placeholders are available:
Use <color> instead of writing the same hex code into every value. It is applied as a style, so everything after it inherits the group color.

Feature switches

Use features to enable or disable each local part of the plugin:
  • chat formats local chat messages with the group’s chat-format
  • tablist applies the group’s prefix, suffix, color and priority to the tab list
  • display-name applies the configured display-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
Set 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:
  • CURRENT receives updates from the current server group, or only this persistent server when running as a persistent server
  • ALL receives 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
You can combine multiple group names and persistent server IDs. To exchange updates in both directions, configure each participating server to receive from the other server’s group or ID.

Commands

API

Use the API to read a player’s prefix data and register custom groups.

Add the dependency

Access the API

The short examples below assume the api instance above and a platform player named player. Place them inside your plugin’s methods. The custom group example is a complete class.

Player management

Get the group of a player:
Get the display values of a player:
Check whether a player is in a specific group:

Group management

List all groups, highest priority first:
Register your own group:
Pass the member UUIDs when you register the group. If membership changes at runtime, replace the copied set with your plugin’s own thread-safe membership store.

Best practices

  • Keep priorities unique so the tab list order stays predictable
  • Give every group the same chat-format unless a rank should visibly stand out in chat
  • Use <color> in display-name and chat-format instead of repeating hex codes
  • Point default-group at a group with an empty permission so every player matches something