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