Skip to content

A unified library to detect if a player can place or destroy a block

Notifications You must be signed in to change notification settings

oraxen/protectionlib

Repository files navigation


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

About

A unified library to detect if a player can place or destroy a block

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages