Zarius / Bukkit-OtherBlocks

OtherBlocks (now known as OtherDrops) plugin for Bukkit (dev build: https://www.mediafire.com/?i6ows1g6kus2o0l)
http://dev.bukkit.org/server-mods/otherdrops/
GNU General Public License v3.0
17 stars 17 forks source link

Limited permission capabilities #373

Closed MardMallard closed 8 years ago

MardMallard commented 8 years ago

Currently the plugin allows for a permission condition, which is handy. However, the permission may only be in the format of otherdrops.custom.(something) (eg. otherdrops.custom.hunter).

This isn't very useful if I need to check for a permission used by other plugins. It makes more sense to me to allow writing the full permission string rather than forcing a prefix of "otherdrops.custom.". Is this possible to implement?

Zarius commented 8 years ago

This should be possible - added some code to check for a "!" at the start and treat that as a full permission, e.g.

permission: "!essentials.home"

This keeps the previous format (i.e. anything without the ! gets otherdrops.custom. pasted to the front before checking) so should not break any existing configs.

Need to test then will push to master.