Compatibility
Minecraft: Java Edition
26.2
26.1.x
1.21.x
Platforms
Links
Tags
Creators
Details
Licensed ARR
Published 8 months ago
[ā ļø] NOTE! If you have any issues with the plugin, please report them on our Discord!
š AntiXray Plugin: AntiXray is a lightweight anti-cheat plugin for Minecraft 1.21+ (Paper/Purpur) that prevents X-Ray cheating using ProtocolLib packet manipulation without modifying the actual world data.
š Compatible with Java 21+ and Paper/Purpur 1.21.4+
Features:
š® Player Experience:
- Legit players see everything normally ā ores visible from caves are rendered correctly with zero delay.
- Ores reveal instantly when mining ā nearby ores are exposed automatically as you dig.
- X-Ray cheaters see fake blocks instead of valuable ores like diamonds, gold, and emeralds.
- Lag-free invisible packet protection.
āļø Admin Commands (/antixray ā alias: /ax ā requires antixray.admin permission):
/antixray reloadā Hot-reloadconfig.ymland rebuild the NMS block registry without restarting the server./antixray statusā Display live cache metrics (size, hit/miss rate, and JVM/ProtocolLib status)./antixray debugā Show current debug logs status./antixray helpā Show command help menu.
š”ļø Protection Engine:
- Configurable Hidden Blocks: Choose which ores to protect (defaults: Diamond, Emerald, Gold, Iron, Coal, Lapis, Redstone, Copper, Ancient Debris, Nether Ores, etc.).
- Engine Mode - LAYER: Replaces ores that are completely covered on all 6 sides by solid blocks with stones/deepslate.
- Engine Mode - OBFUSCATE: Replaces hidden ores AND injects random fake ores into stone/deepslate to completely mislead X-Ray users.
- Reveal Mechanism: Ores become visible within a configurable
reveal-radius(default: 2 blocks) when a block is broken nearby. - World Whitelist & Blacklist: Explicitly enable or disable protection on specific worlds.
š Security:
- Packet-level Obfuscation: Intercepts outgoing
MAP_CHUNKpackets using ProtocolLib and rewrites the bit-packedPalettedContainerbyte array. - Bypass Permission: Players with the
antixray.bypasspermission will see the real, unmodified chunk data (great for trusted admins). - Robust Protection: Blocks all client-side X-Ray mods, texture packs, cheat clients, and custom shaders.
š¦ Requirements:
- Server: Paper or Purpur 1.21.4+ (required for NMS Mojang mappings).
- Java: 21 or Java 25.
- Dependency: ProtocolLib 5.3.0+ (required).
ā” Performance & Optimization:
- Thread-safe LRU Cache: Obfuscated chunk packet data is cached globally per chunk (
ChunkDataCache) ā chunks are processed once and served instantly to all players, minimizing CPU usage. - Read-Write Locking: Thread-safe execution for multi-threaded packet handling.
- Smart Boundary Checks: Invalidates cache for adjacent chunks when a block is broken on chunk borders.
- Minimal Memory Footprint: Efficient cache invalidation on block break/place and TTL cleanups.
š Installation:
- Download and install ProtocolLib from SpigotMC or GitHub.
- Place
ProtocolLib.jarin yourplugins/folder. - Place
antixray.jarin yourplugins/folder. - Restart your server to generate the default configuration.
- Customize
plugins/AntiXray/config.ymland run/antixray reload.


