Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Dynamic Groups

StaticFX edited this page Jun 21, 2020 · 2 revisions

Dynamic Groups

To understand how dynamic groups are working, you need to understand how the plugin sets the player discord group. In the first step the plugin will go trough all registered groups, from the top to the bottom. Then the plugin will check if the players have the permission, if yes you will get the group. But this brings a problem with it. If you use group inherition the higher group will have the permission from the lower groups. So an admin will get all groups. So that that won't hapen, you can only get one group. After you got one, it will skip the others. So if you are admin, you will only get the admin role. But this also brings a problem with it, what if you want to give a player 2 groups? For this there is the dynamic group option. If you set this to true, the plugin will just give you the group, and wont remember you already got one. So if you set the e.g. premium group to dynamic and you have the permission, you will always get that group, even if you already have one.

Clone this wiki locally