knokko / custom-items-gradle

Knokko's Custom Items: Add custom items to your server, completely free of charge
MIT License
15 stars 3 forks source link

More permission support #200

Open knokko opened 1 year ago

knokko commented 1 year ago

Advanced permission support was/will be introduced in Custom Items 11, but it has its limitations. In particular, it misses permissions for equipping items and using items. Also, there is no way to share permissions between items. After some discussion, I got the following ideas to improve on this:

Users can define a list of (global) permissions. Each permission has a name and a set of actions. The initial actions will be:

Each item has a set of associated permissions and, for each action, an integer that defines how many permissions from the set of permissions having that action players need in order to perform that action.