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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8d3a07d · Dec 1, 2024

History

84 Commits
Oct 8, 2023
Nov 21, 2024
Nov 21, 2024
Nov 30, 2024
Aug 6, 2021
Jul 28, 2024
Nov 21, 2024
Dec 1, 2024
Nov 21, 2024
Nov 21, 2024
Jan 1, 2023
Aug 6, 2021
Feb 19, 2023

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