Sueta

⛔ ProtectionLib | Ensure your players can build

1.1.1

A shaded library to unify WorldGuard, Towny, Factions and other protections API

·Plugin

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.

Similar projects

Plugin →