Store: Game4Freak Plugins
Items in your inventory can grand you permissions, which can be specified in the config.
If a player has one of the specified items of the config in his inventory, he has the permission which is set for this item.
E.g.: If you have the item with the id "488" (Desert Falcon) in your inventory you have the permission "example.permission", what allows you to do stuff which require this permission.
Join the discord to stay informed about updates and planed features.
itemPermissions defines a list of item IDs with the permissions.
It can be defines like this:
<itemPermissions> <itemPermission id="488" permission="example.permission"> </itemPermissions>
If you want to use multiple items, simply copy this line:
<itemPermission id="488" permission="example.permission">
When you have the specified item(s) in your inventory you have the permissions set in the config for this item(s).
Example: Only if you have a drive license in your inventory you can drive vehicles (requires other plugin).
You want a custom plugin, have questions on the product or report a bug? Feel free to contact me ;)
Game4Freak#9591 on Discord
Fixed invalid cast exception