Skip to content

Anti‐Exploit‐Protection

Alexisleder edited this page May 29, 2026 · 1 revision

Anti-Exploit Protection

LederProtections is designed with anti-exploit protection as a core priority.

The plugin does not trust the client and validates critical operations server-side.


Protected Mechanics

LederProtections protects against many common bypass methods:

  • fake protection stones
  • GUI item stealing
  • GUI item duplication
  • pistons crossing protection borders
  • fluids crossing protection borders
  • explosions from outside
  • dispensers affecting protected areas
  • hoppers interacting across borders
  • redstone interaction
  • ender pearls
  • chorus fruit
  • armor stands
  • item frames
  • boats
  • minecarts
  • spawn eggs
  • entity interaction
  • container access
  • external interaction attempts

Fake Protection Stones

Protection stones are validated using PersistentDataContainer.

Players cannot create valid protection stones by:

  • renaming an item
  • copying lore
  • using an anvil
  • using fake NBT without server validation

GUI Security

GUIs are protected against:

  • dragging items into GUI menus
  • stealing GUI items
  • shift-click abuse
  • invalid inventory actions
  • client-side manipulation

Piston Protection

Pistons are blocked when they try to:

  • push blocks into a protection
  • pull blocks out of a protection
  • move blocks between different protections
  • move blocks across protection borders

Mechanisms fully inside the same protection can still work when allowed.


Fluid Protection

Water and lava are blocked when they try to flow:

  • from outside into a protection
  • from inside out of a protection
  • from one protection into another

Explosion Protection

Explosions are filtered so protected blocks are not destroyed by external explosions.

This includes:

  • TNT
  • creepers
  • beds
  • respawn anchors
  • end crystals
  • block explosions
  • entity explosions

Projectile and Teleport Protection

The plugin prevents bypass entry using:

  • ender pearls
  • chorus fruit

when the target location is protected and the player does not have access.


Entity Protection

Protected entities include:

  • armor stands
  • item frames
  • glow item frames
  • paintings
  • boats
  • minecarts
  • end crystals

Dispenser Protection

Dispensers are checked when they try to affect protected areas.

This helps prevent external machines from bypassing protection rules.


Economy Safety

The economy system prevents:

  • negative costs
  • invalid costs
  • NaN values
  • infinite values
  • charging when an action cannot continue
  • losing money after critical failures

Refunds are attempted when needed.


Storage Safety

Protection data uses safe saving and backups to reduce corruption risks.


Admin Bypass

Admins can bypass protections using:

lederprotections.admin

Only give this permission to trusted staff.

Clone this wiki locally