AntiPearlGlitch - Pearl Protection v.2.0.0

Blocks pearl glitching through barriers with despawn or realistic reflection.
kayo-anti-enderpearl.jpg

AntiPearlGlitch
Ender Pearl Protection for Paper & Folia 1.21+

Players glitch through barriers, walls and ceilings with ender pearls. It's one of the oldest exploits in Minecraft and it still works.
AntiPearlGlitch stops it. Pearls either get destroyed or bounce off, players who land inside blocks get redirected to a safe spot, and with optional WorldGuard support you can keep pearls from escaping into safezones.
No gameplay changes, no false positives, just solid protection.

bqiyd.gif




The Problem

Ender pearls can teleport players through barriers, glass panes, fences and other thin blocks. This lets them bypass spawn protection, break into bases, escape arenas or reach areas they shouldn't be in.

Vanilla Minecraft doesn't fix this. Most protection plugins don't either, they only cancel the teleport after the pearl already landed inside a wall, which eats the pearl and confuses the player.

AntiPearlGlitch intercepts the pearl before it lands. Depending on your config, it either despawns the pearl or reflects it off the surface like a real bouncing object. Clean, predictable, no pearls wasted for no reason.



Two Modes

Despawn Mode
The pearl hits a blocked block and gets removed. The player hears a glass break sound and gets a configurable message. Simple and effective.

Reflect Mode (default)
The pearl bounces off the blocked block in a physically correct direction, like a ball off a wall. The velocity and bounce count are configurable. After the maximum number of bounces, the pearl breaks. This feels natural and doesn't punish players for throwing pearls near walls.



Safe Landing

Sometimes a pearl lands right at the edge of a block and the player would teleport inside a wall. AntiPearlGlitch checks the landing spot and if it's inside a solid block, it searches for the nearest safe position within a configurable radius. If no safe spot is found, the teleport gets cancelled and the player is notified.

This catches edge cases that other plugins miss entirely.



WorldGuard Integration

Optional integration that stops players from escaping a fight by pearling into spawn or any other safezone. Disabled by default. Flip worldguard.enabled to true and you're done, no region setup required.

Out of the box it uses your existing region PvP flags: a pearl is only blocked when it crosses from a PvP-allowed area into a PvP-denied area. Pearls thrown entirely inside a safezone, or entirely inside a PvP zone, are untouched. No false positives on global no-PvP servers.

Need finer control? Use the custom apg-pearl region flag to override per region:
  • /rg flag spawn apg-pearl deny makes sure no pearls can land in "spawn", ever
  • /rg flag arena apg-pearl allow makes sure pearls always work in "arena", even if PvP is off there

Blocked pearls can either despawn silently or reflect back at the thrower, configurable via worldguard.mode.



Features

  • Block ender pearl glitching through any configurable block type
  • Two modes: despawn or realistic reflection
  • Configurable bounce count, velocity multiplier and search radius
  • Safe-location redirect when pearls land inside solid blocks
  • WorldGuard support stops players escaping into safezones with pearls
  • Custom apg-pearl region flag to allow or deny pearls per region
  • Verbose debug logging for diagnosing tricky setups
  • Toggleable player messages with color code support
  • Configurable permission nodes
  • Lightweight, no NMS, WorldGuard is optional
  • Paper, Purpur and Folia compatible



Commands

  • /apg reload reloads the config

Aliases: /antipearlglitch, /antiglitch

Permissions

  • apg.admin (default: OP) gives access to admin commands
  • apg.bypass (default: false) lets a player bypass pearl glitch protection

Both permission nodes are configurable in config.yml.



Setup

  1. Drop the jar into your plugins/ folder
  2. Start the server
  3. Edit plugins/AntiPearlGlitch/config.yml if needed
  4. Run /apg reload to apply changes



Requirements

  • Java 21+
  • Paper, Folia, or Purpur 1.21+
  • WorldGuard 7.0.13+ (optional, for the WorldGuard integration)



Configuration

Code:
# Verbose debug logging. Prints every pearl hit, WorldGuard region
# lookup and teleport decision to console. Leave OFF in production.
debug: false

# Mode: DESPAWN or REFLECT
mode: REFLECT

# Block types that trigger protection
blocked-blocks:
  - BARRIER

# Reflect settings
reflect-strength: 0.7
max-bounces: 3

# Search radius for safe landing spot (0 = just cancel)
safe-search-radius: 3

# WorldGuard integration. Stops players escaping into safezones with pearls.
# Uses each region's PvP flag by default. Override per region with the
# custom apg-pearl flag:
#   /rg flag spawn apg-pearl deny    never allow pearls in "spawn"
#   /rg flag arena apg-pearl allow   always allow pearls in "arena"
# mode: DESPAWN (silent) or REFLECT (bounce back at the thrower)
worldguard:
  enabled: false
  mode: DESPAWN

# Permission nodes (customizable)
permissions:
  admin: "apg.admin"
  bypass: "apg.bypass"

# Player messages (set enabled to false to disable)
messages:
  enabled: true
  pearl-blocked: "&cYour ender pearl could not find a safe landing spot."
  reloaded: "&aAntiPearlGlitch config reloaded."



FAQ

Does it affect normal pearl usage?
No. Pearls that land on open ground or in safe spots work exactly like vanilla. Only pearls that hit blocked blocks or would teleport the player into a wall are intercepted.

Which blocks should I add to the blocklist?
BARRIER is the default because that's the most common glitch target. You can add IRON_BARS, GLASS_PANE, FENCE or any other block type that players are glitching through on your server.

Despawn or Reflect?
Reflect feels better for players because their pearl doesn't just vanish. It bounces off and might still land somewhere useful. Despawn is simpler and more predictable if you just want pearls gone.

Performance impact?
Essentially zero. The plugin only runs a check when an ender pearl hits a block or a pearl teleport happens. No ticking, no packet interception, no background tasks.

Does it work with Folia?
Yes, fully compatible. No region-threading issues.

Do I need WorldGuard?
No. WorldGuard is fully optional, the plugin runs perfectly without it. Install WorldGuard and flip worldguard.enabled to true only if you want the safezone-escape protection.

Do I need to set up regions for WorldGuard support?
No. Out of the box it uses your existing region PvP flags, so it works on most servers without any extra setup. The custom apg-pearl flag is only for admins who want to override the default behaviour per region.

© 2026 DevKayo All rights reserved.

Latest reviews

Amazing plugin with the dev being really helpful
DevKayo
DevKayo
Thank you so much, K1llerStudios! It was a pleasure developing the feature for you and working together on it. Glad you're happy with the plugin, and I'm always here if you need anything. 💛
Really good plugin, it does its thing total worth it !
DevKayo
DevKayo
Thanks a lot, kaanatq! Really glad it's doing its thing and that it's worth it for you. Let me know anytime if you run into something or have a request. 💛
its worked plugin and its very Optimze plugin and support team is very good
DevKayo
DevKayo
Thank you, TwoCubeMC! Great to hear it's running optimized and working well for you. The support side is something I take seriously, so I appreciate you mentioning it. Reach out anytime. 💛
The plugin is highly optimized, lag free, and does its thing.
DevKayo
DevKayo
Thank you, LineFabi! Lag-free performance is exactly what I aim for, so it's awesome to know it's holding up and doing its job. If you ever need support, feel free to reach out. 💛
EULA: Free EULA
1,153 Views
137 Downloads
Apr 19, 2026 Published
Jun 21, 2026 Updated
5.00 star(s)
Average rating (4)
19.3 KB File size
Open source
  1. No
DRM-free
  1. No
Unobfuscated
  1. No
AI use in marketing
No
AI Content Disclosure
AI assistance was limited to code completion and occasional logic considerations during development.
Type
  1. Gameplay
  1. Protection
  1. World
Game mode
  1. Survival
  1. Lifesteal
  1. Economy
Supported software
  1. Paper
  1. Folia
  1. Purpur
Supported versions
  1. 26.1
  1. 1.21.11
  1. 1.21.8
  1. 1.21.5
  1. 1.21.4
  1. 1.21.2
  1. 1.21
Supported languages
  1. English
Creator
Struggling to cover the costs of your server? Set up your own webstore with Tebex in under 30 seconds.
Host a lag-free Minecraft or Hytale server in minutes.
Get 25% off your first order with our link.
Recommended for you
Blocks freecam exploits by dynamically hiding chunks and entities outside the player's view range.
5.00 star(s) 10 ratings
48 purchases
#1 BuiltByBit Plugin ~ Protects your server from crash packet exploits ~ Folia Support
5.00 star(s) 140 ratings
4,238 purchases
Create items, blocks, mobs, emojis, and more with automatic resourcepack generation!
5.00 star(s) 54 ratings
3,236 purchases
Protect your server from crash/dupe/packet exploits with the ultimate security fix plugin.
5.00 star(s) 45 ratings
3,135 purchases
High Performance | Customizable | Cross-Version | GeyserMC | Folia Support
4.50 star(s) 72 ratings
2,824 purchases
1,153 Views
137 Downloads
Apr 19, 2026 Published
Jun 21, 2026 Updated
5.00 star(s)
Average rating (4)
19.3 KB File size
Open source
  1. No
DRM-free
  1. No
Unobfuscated
  1. No
AI use in marketing
No
AI Content Disclosure
AI assistance was limited to code completion and occasional logic considerations during development.
Type
  1. Gameplay
  1. Protection
  1. World
Game mode
  1. Survival
  1. Lifesteal
  1. Economy
Supported software
  1. Paper
  1. Folia
  1. Purpur
Supported versions
  1. 26.1
  1. 1.21.11
  1. 1.21.8
  1. 1.21.5
  1. 1.21.4
  1. 1.21.2
  1. 1.21
Supported languages
  1. English
Creator
Struggling to cover the costs of your server? Set up your own webstore with Tebex in under 30 seconds.
Host a lag-free Minecraft or Hytale server in minutes.
Get 25% off your first order with our link.
Recommended for you
Blocks freecam exploits by dynamically hiding chunks and entities outside the player's view range.
5.00 star(s) 10 ratings
48 purchases
#1 BuiltByBit Plugin ~ Protects your server from crash packet exploits ~ Folia Support
5.00 star(s) 140 ratings
4,238 purchases
Create items, blocks, mobs, emojis, and more with automatic resourcepack generation!
5.00 star(s) 54 ratings
3,236 purchases
Protect your server from crash/dupe/packet exploits with the ultimate security fix plugin.
5.00 star(s) 45 ratings
3,135 purchases
High Performance | Customizable | Cross-Version | GeyserMC | Folia Support
4.50 star(s) 72 ratings
2,824 purchases
Top