Mineuniverse
Plugins

ProtectionsLib

PLUGIN
Allows developers to depend on multiple plugins easily
by minnymin3
Download Claim this project
839 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Developer Tools
Advertisement Remove ads with Premium →

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.

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);


ProtectionsLib-1.0.0
MC 1.7.4
Beta 2014-04-12 Get

More from minnymin3

Advertisement Remove ads with Premium →

You Might Also Like