CurseForge · Minecraft mod
Player Roles
Role & permission management for Fabric servers
Quick answer
Which Player Roles release should I use?
Player Roles v1.9.0-pre.1 targets 1.21.8, 1.21.6, 1.21.7 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.
Where it goes
Is Player Roles required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Player Roles v1.9.0-pre.1 need?
v1.9.0-pre.1. Change the file and its required mods may change too.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Player Roles without breaking your instance.
Built for Player Roles v1.9.0-pre.1. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use v1.9.0-pre.1. It targets 1.21.8, 1.21.6, 1.21.7 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside v1.9.0-pre.1. It opens that exact file at the source.
About this project
What does Player Roles add?
Player Roles for Fabric
This is a simple implementation allowing for custom permissions to be assigned to players via Discord-like "roles". Roles and their permissions are defined within a JSON file, which can be easily modified and reloaded at runtime for rapid iteration.
The roles.json file is located in the config directory (<root>/config/roles.json).
everyone is the default role: every player will have this role, and it cannot be removed. The other roles that are specified function as overrides on top of the everyone role.
Overrides
Within each role declaration, we list a set of overrides. Overrides are the generic system that this mod uses to change game behavior based on roles. Currently, the supported override types are commands, name_decoration, chat_type, mute, command_feedback, permission_level and entity_selectors.
It is important to consider how overrides are applied when multiple roles target the same things. Conflicts like this are resolved by always choosing the role with the highest level. So, in the case of the example: although everyone declares every command except help to be disallowed, because admin and spectator have higher levels, they will override this behaviour.
Commands
The commands override is used to manipulate the commands that a player is able to use. Each override entry specifies a regular expression pattern to match, and then a strategy for how to respond when the mod encounters that pattern.
For example, the pattern .* matches every possible command, while gamemode (spectator|adventure) would match the gamemode command only with spectator and adventure mode. The strategies that can then be used alongside these patterns are allow and deny: allow will make sure that the player is allowed to use this command, while deny will prevent the player from using this command.
For example:
"commands": {
"gamemode (spectator|adventure)": "allow"
}
The commands override can additionally make use of the hidden rule result, which will allow the command to be used, while hiding it from command suggestions.
Name Decoration
The name_decoration override modifies how the names of players with a role are displayed. This can be used to override name colors as well as prepend or append text. This has lower priority than scoreboard team colors.
Name decoration might be declared like:
"name_decoration": {
"prefix": {"text": "[Prefix] ", "color": "green"},
"suffix": {"text": "-Suffix"},
"style": ["#ff0000", "bold", "underline"],
"contexts": ["chat", "tab_list"]
}
Three fields can be optionally declared:
style: accepts a list of text formatting types or hex colorsprefix: accepts a text component that is prepended before the namesuffix: accepts a text component that is appended after the namecontexts: accepts a set of possible contexts defining where this decoration should be applied- Accepts:
chatandtab_list - Default: applies to all possible contexts
- Accepts:
Chat Types
The chat_type override allows the chat message decorations to be replaced for all players with a role. This integrates with the Vanilla minecraft:chat_type registry, which can be altered with a datapack.
The chat_type override declares simply the chat_type that should be used:
"chat_type": "minecraft:say_command"
This example will replace all messages for players with a given role to apply the say_command style.
It is important to note that Vanilla chat type registry is loaded from the datapack on server start, and cannot be hot-reloaded like the player roles config.
Declaring custom chat types
Custom chat types can be declared with a custom datapack in data/<namespace>/chat_type/<name>.
For example, we might declare a data/mydatapack/chat_type/admin.json:
{
"chat": {
"decoration": {
"parameters": ["sender", "content"],
"style": {},
"translation_key": "%s: %s <- an admin said this!"
}
},
"narration": {
"decoration": {
"parameters": ["sender", "content"],
"style": {},
"translation_key": "chat.type.text.narrate"
},
"priority": "chat"
}
}
Which can be then referenced in an override like:
"chat_type": "mydatapack:admin"
Permission Level
The permission_level override sets the vanilla permission level for assigned players. This is useful for interacting with other mods, as well as with vanilla features that aren't supported by this mod.
Permission level is declared like:
"permission_level": 4
Mute
The mute override functions very simply by preventing assigned players from typing in chat.
Mute is declared like:
"mute": true
Command Feedback
By default, all operators receive global feedback when another player runs a command. The command_feedback override allows specific roles to receive this same kind of feedback.
Command feedback is declared like:
"command_feedback": true
Entity Selectors
Normally, only command sources with a permission level of two or higher can use entity selectors. The entity_selectors override allows specific roles to use entity selectors.
Entity selectors can be allowed like:
"entity_selectors": true
Other configuration
Roles can additionally be applied to command blocks or function executors through the configuration file. For example:
{
"commands": {
"apply": {
"command_block": true,
"function": true
},
"overrides": {
}
}
}
It may also be useful for a role to inherit the overrides from another role. This can be done with the includes declaration by referencing other roles with a lower level. For example:
{
"foo": {
"includes": ["bar"],
"overrides": {
"commands": {
".*": "allow"
}
}
},
"bar": {
"overrides": {
"name_decoration": {
"style": "red"
}
}
}
}
With this configuration, the foo role will inherit the red name_decoration.
Applying roles in-game
Once you've made modifications to the roles.json file, you can reload it by using the /role reload.
All role management goes through this role command via various subcommands. For example:
role assign Gegy admin: assigns theadminrole toGegyrole remove Gegy admin: removes theadminrole fromGegyrole list Gegy: lists all the roles that have been applied toGegyrole reload: reloads theroles.jsonconfiguration file
Project description from CurseForge.
Pick your setup
Player Roles by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.1
1 loader build1.21.11
1 loader build1.21.10
1 loader build1.21.9
1 loader build1.21.8
1 loader build1.21.7
1 loader build1.21.6
1 loader build1.21.5
1 loader build1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader build1.21
1 loader buildShowing the newest 12 of 31 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Player Roles versions and loaders
v1.9.0-pre.1
player-roles-v1.9.0-pre.1.jar
31 Mar 2026
v1.8.1+1.21.11
player-roles-1.8.1.jar
5 Jan 2026
v1.8.0+1.21.11
player-roles-1.8.0.jar
3 Jan 2026
v1.7.0+1.21.10
player-roles-1.7.0.jar
10 Oct 2025
v1.6.15+1.21.6
player-roles-1.6.15.jar
23 Jun 2025
v1.6.14+1.21.6
player-roles-1.6.14.jar
22 Jun 2025
v1.6.14+1.21.5
player-roles-1.6.14.jar
29 Apr 2025
v1.6.13+1.21.5
player-roles-1.6.13.jar
19 Apr 2025
v1.6.13+1.21.5
player-roles-1.6.13.jar
19 Apr 2025
v1.6.13+1.21.1
player-roles-1.6.13.jar
28 Oct 2024
v1.6.12+1.21.1
player-roles-1.6.12.jar
25 Sept 2024
v1.6.11+1.21
player-roles-1.6.11.jar
19 Jun 2024
Looking for an older file? The official CurseForge project page is in Resources.