Added: AutoPickup - You can now specify if specific filters require permissions to use/apply.
Code (YAML):
filters
:
# Filter name, as shown when typing the command.
plants
:
# Display name, shown in the bag's lore.
displayname
: '&aPlants'
# Permission required to use/apply this filter.
permission
:
node
: havenbags.plants
# Does the player require this permission to apply the filter?
# This way to can give bags with specific filters, that the player cant apply themselves.
# They can still remove/change them though.
apply
: false
# Does the player require this permission to use the filter?
use
: true
# Items that this filter will pick up.
items
:
- MATERIAL
You can remove the permission key entirely, or set the node to "none", if no permission is required.
https://github.com/Valorless/HavenBags/blob/1.23.0/src/main/resources/filtering.yml#L10
Changed: Cleaned up commands internally.