Skip to content

Permissions Configuration

Ren edited this page Apr 20, 2022 · 2 revisions

» Home » Permissions » Configuration

Configuration

  • groups: A list of groups.
    • - &grouplabel: The label used to refer back to the group within the config.
      • ==: The group class name. Should usually be RPKGroupImpl unless you know what you're doing.
      • name: The name of the group. This is what is used to refer to the group in game.
      • inheritance: A list of groups that the group inherits from. You can use labels here, for example [*default] would refer back to a group labelled as "&default". The permissions will be assigned in the order in this list, with later entries overriding earlier ones, so for example [*default, *mod] would inherit from both &default and &mod, but would override default permissions with those from mod in cases where they conflict.
      • allow: A list of permissions nodes that are allowed for the group.
      • deny: A list of permissions nodes that are denied for the group.
  • default-group: Which group is default. Should refer back to one of the labels, e.g. "default-group: *default" would refer back to a group labelled as "&default"

Recommended cache sizes

  • player_group id: Should be usually disabled unless you have plugins which were built against an old version of RPKit that didn't have support for profiles, in which case it should be set to the max number of players.
  • rpkit_character_group: Should be set to the max number of players
  • rpkit_profile_group: Should be set to the max number of players

Permissions

rpkit.permissions.command.group.list:
    description: Allows listing groups
    default: op
rpkit.permissions.command.group.add:
    description: Allows adding groups to players
    default: op
rpkit.permissions.command.group.remove:
    description: Allows removing groups from players
    default: op
rpkit.permissions.command.charactergroup.add:
    description: Allows adding groups to characters
    default: op
rpkit.permissions.command.charactergroup.remove:
    description: Allows removing groups from characters
    default: op

Placeholders

If you are using PlaceholderAPI, you may use the following placeholders:

Placeholder Description
%rpkpermissions_profilegroups% A comma-separated list of profile groups
%rpkpermissions_charactergroups% A comma-separated list of character groups
Clone this wiki locally