Conorsmine / PlayerDataManipulator

PDM is a spigot plugin meant to make the process of working with playerdata easier to understand and to execute on the fly.
2 stars 1 forks source link

[Wiki] Add proper permission checks #9

Closed C0D3-M4513R closed 1 year ago

C0D3-M4513R commented 1 year ago

Please move away from just using OP as your permission check. It would be nice if we could control the permission more finely grained (on a per command basis).

Conorsmine commented 1 year ago

Each command has a permission set for it. They are not yet included in the wiki, they will be soon. Too check them manually, you can look up the command in the src code, they should have a "CommandPermission" Annotation affiliated with them, eg. https://github.com/Conorsmine/PlayerDataManipulator/blob/38b8ea53ce7076fbf2ba50d8874206089bf3e181/Plugin/src/main/java/com/conorsmine/net/cmds/PlayerCmds.java#L42

Conorsmine commented 1 year ago

This issue has been resolved. The wiki now includes the permission node for every command. Thanks again for the feedback, appreciate it. :D