Change Log 1.1.11
Added permission based block limits.
Limits can be placed per block, or across all blocks using the new configuration option "perm_limit_by_block" - if true, it will apply permissions per block, if false, it will limit by all blocks. It will default to true if no entry is in the config.
Code (YAML):
perm_limit_by_block
: true
When true, players with the permission "domain.<blockname>.limit.<number>" will be limited to the block with a maximum of the number set.
Block name is the "block_key" value in your block configuration
Code (YAML):
block_key
: grief_prevent
For example, you could assign permissions to a group that allows 3 grief_prevent blocks, 1 city block but no no_fly_zone blocks.
Code (Text):
domain.grief_prevent.limit.3
domain.city.limit.1
domain.no_fly_zone.limit.0
Once these limits are met, the player will receive an error message when trying to place a Domain block.
If perm_limit_by_block is false, the permission "domain.limit.<number>" will limit the number of Domain blocks, regardless of type.
For example, your group might look like the below, which would limit the player to a maximum of 5 domain blocks of any type.
Code (Text):
domain.limit.5
If no permission is found, the maximum defaults to 999, so if you want to use this feature, be sure to add limits to your default/member groups.
Any questions, please reach out in discussion, private message or on the Discord