Vault

Vault

7M Downloads

Add a method returning whether the permissions plugin supports wildcards

bergerkiller opened this issue ยท 1 comments

commented

Not all permission plugins support the *-wildcard in permission nodes, but knowing whether it DOES support it is not possible through Vault. I request a boolean getter that gets whether the current Permissions plugin supports wildcards.

Right now I am doing some hackish workaround which, sadly, leaves behind some permission node for a non-existent player. It's not a good way to do this.

http://pastebin.com/Aug0eCis

commented

The assumption is Super-Permissions compatibility. Bukkit perms do not translate wildcard nodes into anything other than another permission. If you want implementation specifics that are not in Vault, generally you should be linking with the permission plugin directly.

If this is something that is absolutely necessary for your plugin, a pull request would be best.