Locking packages with permissions
You can require a permission to open a category or buy a package, for example to hide rank upgrades from players who already have the rank. Two ways to set it:
- Per item: set
permissionon the entry instore_data.yml. - By ID, with these switches in
config.yml:
permissions:
# Require hypertebex.package.<id> to purchase a package.
enforce_package_permissions: false
# Require hypertebex.category.<id> to open a category.
enforce_category_permissions: false
# Hide packages/categories the player has no permission for (instead of showing them and denying clicks).
hide_locked_items: false
With enforce_package_permissions: true, a player needs hypertebex.package.<package id> (and hypertebex.category.<category id> for categories when that switch is on). These nodes are not declared in the plugin, so grant them through your permissions plugin, with a wildcard such as hypertebex.package.* if you want everything open by default.