Skip to content

Anti-grief library for easier plugin development. (1.17+) (Java 17+)

License

Notifications You must be signed in to change notification settings

Xiao-MoMi/AntiGriefLib

Repository files navigation

Supported Plugins

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

Use this project as dependency

GitHub CodeFactor
Gradle (kts)

repositories {
    maven("https://jitpack.io/")
}
dependencies {
    compileOnly("com.github.Xiao-MoMi:AntiGriefLib:{LATEST}")
}

API Guide

// 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!"));
}

About

Anti-grief library for easier plugin development. (1.17+) (Java 17+)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages