ProtectionLib introduces four methods to check if a player can build, break or interact with a block at a specific location.
ProtectionLib.canBuild(player,location);
ProtectionLib.canBreak(player,location);
ProtectionLib.canInteract(player,location);
ProtectionLib.canUse(player,location);
- Add the jitpack repo
maven { url 'https://jitpack.io' }
- Shade ProtectionLib to your plugin
implementation 'com.github.oraxen:protectionlib:RELEASE_VERSION'
- Init ProtectionLib in your plugin onEnable()
ProtectionLib.init(this);
- Add softdepend to plugin.yml
softdepend: [ WorldGuard, Towny, Factions, Lands, PlotSquared, CrashClaim, HuskTowns ]
- WorldGuard (Free)
- Towny (Free)
- FactionsUUID (Paid)
- Lands (Paid)
- PlotSquared (Free)
- CrashClaim (Paid)
- HuskTowns (Paid)