This library provides two methods:
ProtectionLib.canBuild(player, location)
ProtectionLib.canBreak(player, location)
To use this lib:
1) Add the jitpack repo
maven { url 'https://jitpack.io' }
2) Shade ProtectionLib to your plugin
implementation 'com.github.oraxen:protectionlib:master-SNAPSHOT'
3) Init ProtectionLib in your plugin onEnable()
ProtectionLib.init();
4) Add softdepend to plugin.yml
softdepend: [ WorldGuard, Towny, Factions, Clans ]
You can now use ProtectionLib#canBuild(player, location) and ProtectionLib#canBreak(player, location) in your plugin.
Code (Text):
ProtectionLib.canBuild(player, location)
ProtectionLib.canBreak(player, location)
1) Add the jitpack repo
Code (Text):
maven { url 'https://jitpack.io' }
Code (Text):
implementation 'com.github.oraxen:protectionlib:master-SNAPSHOT'
Code (Text):
ProtectionLib.init();
Code (Text):
softdepend: [ WorldGuard, Towny, Factions, Clans ]
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.17
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.