ProtectionsLib
ProtectionsLib
ProtectionsLib is a WIP plugin that will provide developers with a vault-like interface allowing them to depend on multiple protections plugins (WorldGuard, Towny, Factions, etc.). The library can be downloaded on the left. Version 1.0.0 currently contains protections for WorldGuard, Towny and Factions.
Development
Development builds of this project can be found at this continuous integration server.
- These builds are not approved by the BukkitDev staff. Use at your own risk.
- These builds are not offered by Curse.com and they take no responsibility when using these links
Continuous Integration: http://ci.minezrc.net/job/ProtectionsLib/
Github Source Code: https://github.com/minnymin3/ProtectionsLib
Usage
ProtectionsLib's API exists in the main plugin class file.
Fetching ProtectionsLib:
ProtectionsLib protections = null; Plugin plugin = Bukkit.getPlugin("ProtectionsLib"); if (plugin instanceof ProtectionsLib) { protections = (ProtectionsLib) plugin; }
Currently, there are three checks you can do. Block checking, location checking and pvp checking.
protections.canBuild(player, block); protections.canBuild(player, location); protections.canPvp(player, target);
This looks pretty cool.
Up above you say "Version 1.0.0 currently contains protections for WorldEdit, Towny and Factions." but I think you mean WorldGuard. Just thought I'd let you know while I was stopping by =)