BentoBox
CrashClaim
FabledSkyBlock
FactionsUUID
GriefDefender
GriefPrevention
hClaims
HuskClaims
HuskTowns
IridiumSkyBlock
KingdomsX
Landlord
Lands
PlotSquared
PreciousStones
ProtectionStones
RedProtect
Residence
SaberFactions
SuperiorSkyBlock
Towny
UltimateClaims
UltimateClans
WorldGuard
XClaim
repositories {
maven("https://jitpack.io/")
}
dependencies {
compileOnly("com.github.Xiao-MoMi:AntiGriefLib:{LATEST}")
}
// Create a lib instance on plugin enable
var lib = AntiGriefLib.builder(JavaPlugin)
.silentLogs(true)
.ignoreOP(true)
.addCompatibility(new MyCustomAntiGriefImpl())
.build();
// use the api to check permissions
if (!lib.canPlace(player, location)) {
player.sendMessage(Component.text("You can't place it here!"));
}