Warptastic Limit Nodes
Configuration:
In the config we have setup 3 limit nodes... MaxWarps:
LimitNodes:
- 1
- 2
- 3 This mean we now have 3 new permissions... •warptastic.limit.1
•warptastic.limit.2
•warptastic.limit.3 To apply these limits, we simply give a group the desired permission node.
But wait!
In some cases groups may inherit permissions from an earlier group, so we must first make sure that any group inheriting an earlier limit permission has the node disabled before setting a new one...
Example:
guest:
permissions:
warptastic.limit.2: true
inheritance:
- default
member:
permissions:
warptastic.limit.2: false
warptastic.limit.3: true
inheritance:
- guest
PEX Example:
groups:
guest:
default: true
permissions:
- warptastic.limit.2
member:
inheritance:
- guest
permissions:
- -warptastic.limit.2
- warptastic.limit.3
In both examples, the group 'guest' has a warp limit of 2.
The 'member' group however inherits it's permissions from the guest group.
So we must first disable the permission node (warptastic.limit.2) before applying a new one, thus giving the 'member' group a higher warp limit than guest. And that's it!
You can now configure & set a different number of maximum warps for different groups.
In the config we have setup 3 limit nodes... MaxWarps:
LimitNodes:
- 1
- 2
- 3 This mean we now have 3 new permissions... •warptastic.limit.1
•warptastic.limit.2
•warptastic.limit.3 To apply these limits, we simply give a group the desired permission node.
But wait!
In some cases groups may inherit permissions from an earlier group, so we must first make sure that any group inheriting an earlier limit permission has the node disabled before setting a new one...
Example:
guest:
permissions:
warptastic.limit.2: true
inheritance:
- default
member:
permissions:
warptastic.limit.2: false
warptastic.limit.3: true
inheritance:
- guest
PEX Example:
groups:
guest:
default: true
permissions:
- warptastic.limit.2
member:
inheritance:
- guest
permissions:
- -warptastic.limit.2
- warptastic.limit.3
In both examples, the group 'guest' has a warp limit of 2.
The 'member' group however inherits it's permissions from the guest group.
So we must first disable the permission node (warptastic.limit.2) before applying a new one, thus giving the 'member' group a higher warp limit than guest. And that's it!
You can now configure & set a different number of maximum warps for different groups.