HomeJavaMods⛔ ProtectionLib | Ensure your players can build
⛔ ProtectionLib | Ensure your players can build
ModsJava

⛔ ProtectionLib | Ensure your players can build

⬇ Download on Spigot
This library provides two methods:
Code (Text):

ProtectionLib.canBuild(player, location)
ProtectionLib.canBreak(player,  location)
 
To use this lib:

1) Add the jitpack repo
Code (Text):

maven { url 'https://jitpack.io' }
 
2) Shade ProtectionLib to your plugin
Code (Text):

implementation 'com.github.oraxen:protectionlib:master-SNAPSHOT'
 
3) Init ProtectionLib in your plugin onEnable()
Code (Text):

ProtectionLib.init();
 
4) Add softdepend to plugin.yml
Code (Text):

   softdepend: [ WorldGuard, Towny, Factions, Clans ]
 
You can now use ProtectionLib#canBuild(player, location) and ProtectionLib#canBreak(player, location) in your plugin.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

⛔ ProtectionLib | Ensure your players can build is a free Minecraft Java mod. Compatible with Minecraft 1.17. Downloaded 515 times (via Spigot). Download it and open it directly in the game.

Explore more