PowerRanks

PowerRanks

650k Downloads

API: add a getPermissions method for a specific player's permissions, since there already exists getPermissions for ranks

rysberries opened this issue ยท 0 comments

commented

I'm not a dummy, so I've checked these

  • I am not using any other permission management plugin
  • I use the latest available version of PowerRanks (no, will explain)
  • I am a human

Is your feature request related to a problem? Please describe.
Somewhat... in the API (im running 1.8, and yes I am aware 1.8 is outdated), there exist these two methods:
addPermission(Player player, String permission): boolean
removePermission(Player player, String permission): boolean
Which is cool and all, but why is there no getPermissions method for getting perms of specific players independent of ranks?
Knowing that addplayerperm and delplayerperm exist it feels like an oversight.

Describe the solution you'd like
Quickly add a new method that returns the list of player permissions so we can do permission checks

Describe alternatives you've considered
There are no alternatives to this issue, its just an oversight

Additional context
None