Skip to content

How to assign players into groups

NEZNAMY edited this page Mar 23, 2020 · 37 revisions

You have 3 ways to assign your players into groups:

Method 1: Primary permission group

This is the easiest, most common and default method. Plugin will simply ask your permission plugin for primary group.

  1. Make sure your permission plugin is configured correctly.
  2. Run /tab debug to see if your permission plugin is picked up correctly. You should see: Found permission system: <YourPermissionPlugin> and Primary permission group: <YourGroup>. If not, configure your permission plugin correctly or try one of the next methods.

Method 2: Choosing from group list

If you don't know how to configure your permission plugin to show primary group correctly in case players are in more than one or just can't do it because something else would break, you have another option:

  1. Go to advancedconfig.yml set use-primary-group: false
  2. Add the groups from your permission plugin to the primary-group-finding-list in order you want them to be picked. Out of player's groups the highest one in this list will be chosen as primary.
  3. Save the file and reload the plugin. Check with /tab debug if everything's correct.

Note: The list does nothing for sorting, just puts you in the right group.

Method 3: Permission nodes

None of the above worked or do you simply prefer permission nodes ? No problem !

  1. Open up advancedconfig.yml and set assign-groups-by-permissions: true.
  2. Give tab.group.<group name> permission with your permission plugin to the user/permission group.
  3. Put all possible groups into primary-group-finding-list. This is needed because:
    #1 - there's no way to get list of permissions of a player, only checking for a permission. The list will be used for list of permissions to check for.
    #2 - if a player has permission for more than one group, the list will be used to pick the correct one (the one higher in the list).
Clone this wiki locally