-
Notifications
You must be signed in to change notification settings - Fork 67
Limits
You can limit how many fields your users place. Multiple limits can be set per field in the in the config, which can then be assigned using permissions to your different player groups.
For example say you want your Default group to able to place only one Glow of Life and no Jack-o-Death fields, your Members to be able to place 10 of each, and your Veterans to be able to place up to 30 of each. You first define the counts in the limits field flag for each of your fields:
-
title: "Glow of Life"
block: 89
radius: 5
slow-heal: true
no-conflict: true
limits: [1, 10, 30]
-
title: "Jack-o-Death"
block: 91
radius: 5
slow-damage: true
no-conflict: true
limits: [0, 10, 30]
Then you give your Default group the preciousstones.limit1
permission, your Members group the preciousstones.limit2
permission, and your Veteran group the preciousstones.limit3
permission. Now the limits will be enforced, when your players try to place more than what their limit allows the block place will be denied and they will be shown a warning. Any players with the preciousstones.bypass.limits
permission will be able to place any pstones without limits.
You can have up to 15 limits per field.
You as admin can use /ps counts [typeid/player]
to get a list of players and their counts of a specific field or get the counts of all fields for a specific player. Your players can use /ps counts
by itself to get their own counts including their limits.