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

Tartaros-Gamer/protectionlib-1

 
 

Repository files navigation


ProtectionLib

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

CodeFactor

What's new?

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

Get ProtectionLib

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

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

  • Java 100.0%