This tutorial assumes you have a fabricmc server with fabric-api installed
In your player roles config (/config/roles.json
) add a role for which you want a prefix, for exameple:
"owner": {
"overrides": {
"permission_keys": {
"role.owner": "allow"
}
}
},
Your config would then look like this:
Reload Player Roles by running
/role reload
In your Styled Chat config (/config/styled-chat.json
) add a permission based style to the styles
at the bottom of the config, for example:
{
"require": {
"type": "permission",
"permission": "role.owner"
},
"display_name": "<blue>Owner</blue> ${default}",
"message_formats": {},
"formatting": {},
"emoticons": {}
}
- When adding multiple styles, please makes sure it's still a valid JSON, a proper text editor will show you any mistakes you've made, you do not have to install anything, you can also just use vscode.dev
- For styling the prefix and the username use Simplified Text Format, formatting with & or § will not work.
Your config should now look something like this:
Reload Styled Chat by running
/styledchat reload
In your Styled Player List config (/config/styledplayerlist/config.json
) change some values to update the names.
Set changePlayerName
to true
and playerNameUpdateRate
to 20
as shown below
Reload Styled Chat by running
/styledplayerlist reload