-
Notifications
You must be signed in to change notification settings - Fork 1
Defining levels
Permission level is used to describe the permissions a player or a command executor has.
In Java Edition some client-side features are hardcoded behind this permission check.
There are permission levels from 0 to 4. Levels are incremental, meaning level n + 1 allows anything level n allows.
| Level | Name | Explanation |
|---|---|---|
| 0 | All | This is what all players have by default. |
| 1 | Moderator | - |
| 2 | Gamemaster | Access to the Game mode switcher, F3+N and Operator Utilities |
| 3 | Admin | - |
| 4 | Owner | - |
See the Minecraft Wiki for more information.
By default, OperatorLevel uses LuckPerms' meta system to define the levels. Using LuckPerms' meta system is preferred over the permission system.
To use this feature the luck-perms-meta config option must be set to true.
# Use LuckPerms' meta system to define levels.
# Will fallback to a permission based system if LuckPerms isn't available.
luck-perms-meta = trueThis can be done using either commands or with the LuckPerms' web editor
For example the command giving the group admin operator level 4 would look like this:
/lp group admin meta set operatorlevel 4
Or by using the web editor:

Note
You may need to run the /webhooklogger reload command after making changes for the level to update.
This is especially true when making meta changes to the groups.
OperatorLevels also includes a permission based system to define the levels. The permissions are in the following format: operatorlevel.level.x.
To use this feature the luck-perms-meta config option must be set to false.
# Use LuckPerms' meta system to define levels.
# Will fallback to a permission based system if LuckPerms isn't available.
luck-perms-meta = falseImportant
Remember to reload the plugin after changing the configuration.
For example to give a player access to the game mode switcher you'd want to give them the permission operatorlevel.level.2.
Note
You may need to run the /operatorlevel reload command after modifying levels for the changes to apply.