Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.79 KB

README.md

File metadata and controls

62 lines (45 loc) · 1.79 KB


ProtectionLib

❌ A unified library for WorldGuard, Towny, Factions and other protections API

CodeFactor

What's new?

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

Get ProtectionLib

  1. Add the jitpack repo
   maven { url 'https://jitpack.io' }
  1. Shade ProtectionLib to your plugin
   implementation 'com.github.oraxen:protectionlib:RELEASE_VERSION'
  1. Init ProtectionLib in your plugin onEnable()
   ProtectionLib.init(this);
  1. Add softdepend to plugin.yml
   softdepend: [ WorldGuard, Towny, Factions, Lands, PlotSquared, CrashClaim, HuskTowns ]

Supported plugins