Krypton
Server-side protection against x-ray, freecam and ESP cheats: it hides ores, buried terrain, containers and entities from the client until a player could really see them, and alerts staff to suspicious mining.
Requirements
- Paper or Folia 1.21.4 or newer (built and checked against 1.21.4 through 26.2)
- Java 21
- A valid license key
No other plugins are required. Krypton does not use PacketEvents or ProtocolLib.
Installation
- Drop
Krypton.jarintoplugins/. - Start the server once to generate
config.ymlandmessages.yml. - Put your license key in
config.ymlunderlicense-key. - Restart the server.
Krypton stays idle until the license check passes, and a missing key leaves the modules off. Run /krypton status to confirm everything is running.
When you update, Krypton merges the new defaults into your existing config.yml and messages.yml and keeps your edits. New keys are added, settings you never changed follow the new default, and retired keys you never changed are removed. If the file changed, the previous copy is saved as config.yml.bak (or messages.yml.bak). Krypton also writes a config.yml.new (or messages.yml.new) report that lists what was added, updated, kept at your value because the default changed, removed or left unused, followed by the new default file so you can compare. The defaults folder in the plugin folder is the copy Krypton compares against, so leave it alone.
The config menu is built into the jar and has no file. A gui.yml left over from an older version is deleted on startup.
If you run the Clover server software, which already includes these protections, Krypton detects it, logs a message and keeps its own modules off.
Features
Anti-Xray
Ores listed in hidden-blocks are sent to the player as plain rock until they are visible.
- Ores are swapped for the matching rock: stone in the overworld, deepslate for deepslate ores or below Y 0, netherrack in the nether and end stone in the end.
- With
ray-traceon, even ores touching air stay hidden until the player has a clear line of sight to them withinray-trace-distance. Sight is checked against the exposed faces of the ore, so an ore seen at a shallow angle still reveals. With it off, ores that touch air are left real and only fully buried ores are hidden. - The reveal scan runs off the server thread. While a player stands still, looks the same way and nothing changes nearby, it pauses for
idle-recheck-ticksand wakes on movement, rotation or a nearby block change. - Blocks within
always-visible-distanceof the player are never hidden. - Breaking, exploding, burning or pushing blocks near an ore exposes it, and Krypton reveals it to players who can see it.
- Only blocks below
max-block-heightare protected. - Fake ores (off by default) place decoy ores inside solid rock to bait x-ray users. They are generated per player, never appear near the player, and turn back into rock the moment the player gets within
fake-ores-reveal-distanceor a neighbouring block changes.
Anti-Freecam
Stops a freecam or spectator-style client from looking through the ground.
- Height mask. When a player is at or above
reveal-height(or is in spectator mode), everything belowcutoff-heightis sent as air, or as random blocks ifhide-underground-random-fillis on. The view unlocks again once the player drops belowreveal-heightminusremask-margin. Turning the mask on needs the condition to hold for 1.5 seconds and has a 5 second cooldown, so players near the line do not flicker. Unmasking happens immediately once the player drops belowreveal-heightminusremask-margin, and spectators switch instantly. - Hidden containers. Blocks listed in
block-entity-types(chests, signs, spawners, heads and more) are hidden until the player has line of sight withinblock-entity-reveal-distance. Hidden blocks become water, the surrounding rock or air so the hole is not obvious. - Hide underground. Everything buried under natural terrain that is not part of the natural cave shape (bases, structures, player-built tunnels, mineshafts, ores) is replaced with rock until the player has line of sight to it. Krypton casts sight rays from the player every tick and shows the real blocks when a ray reaches them. Areas the player stops looking at are hidden again after
hide-underground-rehide-afterseconds. Open space such as floating islands and overhangs is never treated as buried, and cliff edges and cave entrances stay visible so terrain looks natural. While a player is underground, Krypton also floods outward through connected cave air up tohide-underground-cave-radiusblocks and reveals it. Hide underground is off by default (hide-underground: false). It only applies to players that Anti-Freecam covers, so keepanti-freecam.enabled: truefor it to work.
Anti-ESP
Stops wallhack and ESP clients from learning where other players and entities are.
- Hide entities. Entities without a clear line of sight are hidden from the client and shown again when visible. Entities inside hidden underground areas are hidden too. Large entities and entities riding with the player are skipped. Line of sight runs off the server thread, and nearby entities are followed through Paper's tracking events, with a full resync every
tracked-resync-ticks. - Close and surface range. Entities within
always-visible-distanceorclose-visible-distance(whichever is larger) are never hidden, so nametags stay visible. When both the player and the entity are above ground, entities withinabove-ground-visible-distanceare not hidden either./krypton statusshows the values in use and whether you are above ground. - Hide player health. Other players' health is shown as
spoofed-healthwhile they are alive and absorption is hidden. - Hide sounds. Sounds in the listed categories farther than
sound-hide-distanceare dropped. Sounds betweensound-jitter-distanceand that limit are moved by up tosound-jitter-blocksso they cannot be traced to an exact spot. Sounds from hidden entities are dropped. - Hide mining progress. Block-crack animations from hidden players are dropped.
- Hide waypoints. Hidden players do not appear on the locator bar (versions that have one). Hidden players stay in the tab list.
If Anti-ESP cannot start on an unusual server version, Krypton logs it and keeps Anti-Xray and Anti-Freecam running.
Anti-Seedcracker
Stops seed cracking tools from reading the world seed. It is on by default and has two parts.
- Hashed seed. The hashed world seed that the server sends in the login and respawn packets is replaced with a random value for each connection. If the server version does not allow this, Krypton logs a warning and leaves it off.
- Dungeon scrambling. Seedcrackers read the floor pattern around monster spawners. Blocks listed in
dungeon-floor-blocks(mossy cobblestone by default) withindungeon-floor-radiusof a spawner are sent asdungeon-floor-replacement(cobblestone by default). Only the packets sent to the player change, the real blocks stay as they are. Worlds in the globaldisabled-worldsare skipped. Turn it off withscramble-dungeons: false.
Xray Detection
Tracks how much stone a player mines compared with how many ore veins they find, and alerts staff when the rate is suspicious. It is off by default, so set xray-detection.enabled: true to use it. Survival and adventure players only. Deepslate ores count as the same ore. A vein is a group of nearby blocks of one ore, so mining a whole vein counts once.
An alert fires for an ore when all of these are true within the last window-minutes: the player mined at least min-stone-mined stone, found at least min-veins veins of that ore, and veins per 100 stone mined is above that ore's value in thresholds. Each player and ore then has a alert-cooldown-seconds cooldown. Only ores listed in thresholds are tracked.
In-game config menu
/krypton opens a menu to change nearly every setting without editing files (anti-seedcracker and performance are file only). Left click toggles a module or setting. Right click on a module tile opens its page. Number settings go up on left click, down on right click, and change 10 times faster with shift. List settings open an editor where clicking an entry removes it and Add Held Item adds the item in your hand. World settings open a picker with one entry per loaded world. Changes apply immediately and are saved to config.yml.
Commands
| Command | Aliases | Description |
|---|---|---|
/krypton |
/kr |
Open the config menu (players). Shows usage from the console. |
/krypton menu |
/krypton gui |
Open the config menu. |
/krypton reload |
Reload config.yml and messages.yml. |
|
/krypton status |
Show which modules are on, live counters and your own protection state. |
All subcommands need krypton.admin. reload and status also work from the console.
/krypton status reports:
| Line | Meaning |
|---|---|
| Anti-xray / Anti-freecam / Anti-ESP | on or off, or off (Clover). |
| Viewers, Hidden ores, Hidden blocks, Hidden entities | Live totals across all protected players. |
| Protection errors | Number of internal errors caught. Should stay at 0. |
| Modules | running, waiting for license check, off (license check failed) or off (unsupported server version, see console). |
| You | Your own xray, freecam and esp state (protected, bypassing, inactive) and whether packets are hooked. |
| Anti-ESP | The close range in blocks, the above-ground range, and whether you are above ground. |
Changes that alter what players see (hidden blocks, heights, replacements, underground settings and similar) automatically resend nearby chunks to online players after a reload or a menu change.
Permissions
| Permission | Default | Description |
|---|---|---|
krypton.admin |
op | Use /krypton and the config menu. |
krypton.alerts |
op | Receive Xray Detection alerts. |
krypton.bypass.xray |
nobody | See real ores. Anti-Xray does not apply to this player. |
krypton.bypass.freecam |
nobody | See real underground terrain and hidden containers. Anti-Freecam and hide underground do not apply. |
krypton.bypass.esp |
nobody | See entities through walls, real health and real sounds. |
krypton.bypass |
nobody | All three bypass permissions. |
Operators do not get the bypass permissions automatically, so staff who need to see everything must be given them. All five nodes can be renamed under permissions in config.yml. Bypass permissions are re-checked every permission-recheck-ticks, so a permission change takes effect without a relog (within 10 seconds by default).
Configuration
Files: config.yml, messages.yml. Run /krypton reload after editing. Lists such as hidden-blocks accept block names without the minecraft: prefix, and several lists accept #tag entries (for example #all_signs). Entries in disabled-worlds are case-insensitive and match the world name or its namespaced key (for example world_nether or minecraft:the_nether).
General
| Key | Default | Description |
|---|---|---|
debug |
false |
Verbose logging. |
license-key |
empty | Your license key. |
permissions.admin |
krypton.admin |
Permission for /krypton. |
permissions.alerts |
krypton.alerts |
Permission to receive alerts. |
permissions.bypass-xray |
krypton.bypass.xray |
Anti-Xray bypass. |
permissions.bypass-freecam |
krypton.bypass.freecam |
Anti-Freecam bypass. |
permissions.bypass-esp |
krypton.bypass.esp |
Anti-ESP bypass. |
permission-recheck-ticks |
200 |
How often bypass permissions are re-checked (minimum 20). |
disabled-worlds |
[] |
Worlds where every module is off, including dungeon scrambling. Each module also has its own disabled-worlds. |
performance.async-threads |
2 |
Worker threads for the reveal and line of sight scans (minimum 1). |
anti-xray
| Key | Default | Description |
|---|---|---|
enabled |
true |
Turn the module on or off. |
disabled-worlds |
[] |
Worlds where it is off. |
max-block-height |
320 |
Highest Y that is protected. |
ray-trace |
true |
Keep ores that touch air hidden until a player can see them. |
ray-trace-distance |
32 |
How far the ray trace looks, in blocks. |
ray-trace-checks-per-tick |
64 |
Ray traces per player per tick. Lower is lighter on the server. |
idle-recheck-ticks |
100 |
Ticks the ore scan stays idle while a player is still and nothing nearby changed (minimum 1). |
always-visible-distance |
8 |
Blocks this close to a player are never hidden. |
hide-underground |
false |
Hide buried non-natural blocks and structures until seen (needs Anti-Freecam on). |
hide-underground-below-y |
256 |
Only blocks below this Y can be hidden. |
hide-underground-distance |
2 |
Hidden areas within this many blocks show without a sight check. |
hide-underground-reveal-distance |
64 |
How far sight rays reach to reveal hidden areas. Minimum 8. |
hide-underground-rays-per-tick |
32 |
Sight rays per player per tick. More reveals areas faster and costs more CPU. |
hide-underground-surface-margin |
6 |
Solid blocks must be at least this far under the surface to be hidden. |
hide-underground-max-cave-height |
24 |
Open space taller than this is not a cave (islands, overhangs) and is never hidden. Minimum 4. |
hide-underground-rehide-after |
5 |
Seconds before an area a player stopped seeing is hidden again. 0 = never. |
hide-underground-rehide-blocks-per-tick |
128 |
How many blocks are re-hidden per tick (minimum 16). |
hide-underground-edge-margin |
3 |
Blocks next to cliffs and overhangs that are never hidden. |
hide-underground-cave-margin |
14 |
Cave air and water this many blocks under the surface stays visible so entrances look natural. |
hide-underground-cave-radius |
16 |
Connected cave air within this many blocks of an underground player is revealed without a sight check. 0 turns it off, maximum 32. |
hide-underground-natural-blocks |
stone, deepslate, tuff, granite, diorite, andesite, calcite, dirt, coarse_dirt, gravel, clay, sand, red_sand, sandstone, red_sandstone, bedrock, netherrack, basalt, blackstone, end_stone | Rock left as it is in hidden areas. Anything else buried (caves, structures, placed blocks) is turned into rock. |
hide-underground-random-fill |
false |
Fill hidden areas and the freecam blackout with random blocks instead of plain rock. |
hide-underground-random-palette |
rock:46, andesite:8, granite:8, diorite:8, tuff:8, dirt:5, gravel:5, cobblestone:4, air:4, water:2, lava:2 |
block:weight entries used by random fill. rock means the correct rock for that depth. |
hide-underground-environments |
NORMAL |
World types hide underground applies to (NORMAL, NETHER, THE_END). |
fake-ores |
false |
Place decoy ores. |
fake-ores-per-section |
6 |
Fake ores per 16x16x16 area (0 to 64). |
fake-ores-max-y |
64 |
Fake ores only appear below this Y. |
fake-ores-reveal-distance |
4 |
Fake ores turn back into rock when a player is this close. |
fake-ores-environments |
NORMAL |
World types fake ores appear in. |
fake-ores-palette |
diamond_ore:3, emerald_ore:1, gold_ore:3, iron_ore:4, redstone_ore:3, lapis_ore:2, copper_ore:3, coal_ore:4 | ore:weight entries. Deepslate variants are used automatically in deepslate and below Y 0. |
fake-ore-hosts |
stone, deepslate, tuff, granite, diorite, andesite | Rock that fake ores may replace. |
hidden-blocks |
all vanilla ores including nether and deepslate variants, ancient_debris, raw_iron_block, raw_copper_block, raw_gold_block | Blocks hidden from cheats. |
replacements.overworld |
stone |
Shown instead of ores in the overworld. |
replacements.deepslate |
deepslate |
Shown instead of deepslate ores and below Y 0. |
replacements.nether |
netherrack |
Shown in the nether. |
replacements.end |
end_stone |
Shown in the end. |
anti-freecam
| Key | Default | Description |
|---|---|---|
enabled |
true |
Turn the module on or off. |
disabled-worlds |
[] |
Worlds where it is off. |
reveal-height |
30 |
Players at or above this Y (and spectators) get the height mask. |
cutoff-height |
16 |
Blocks below this Y are masked for those players. |
remask-margin |
4 |
Blocks below reveal-height before the view unlocks again. |
resend-chunks-per-tick |
16 |
Chunks re-sent to a player each tick when something changes. |
hide-block-entities |
true |
Hide the container types below until seen. |
block-entity-reveal-distance |
64 |
How close a player must be to see hidden containers. |
block-entity-checks-per-tick |
48 |
Container visibility checks per player per tick. |
always-visible-distance |
3 |
Containers this close are never hidden. |
block-entity-types |
signs, shulker boxes, beds and banners (by tag), chest, trapped_chest, barrel, ender_chest, the four copper chests, spawner, trial_spawner, vault, hopper, dispenser, dropper, furnace, blast_furnace, smoker, brewing_stand, beacon, enchanting_table, decorated_pot, crafter, bell, conduit, lectern, campfire, soul_campfire, jukebox, chiseled_bookshelf, beehive, bee_nest, sculk_sensor, calibrated_sculk_sensor, sculk_shrieker, sculk_catalyst, suspicious_sand, suspicious_gravel, end_portal, end_gateway, command blocks, structure_block, mob heads and player heads | Block types that get hidden. |
anti-esp
| Key | Default | Description |
|---|---|---|
enabled |
true |
Turn the module on or off. |
disabled-worlds |
[] |
Worlds where it is off. |
hide-entities |
true |
Hide entities without line of sight. |
entity-types |
[] |
Limit hiding to these entity types (for example PLAYER). Empty means every type. |
check-interval-ticks |
6 |
Ticks between visibility checks. |
always-visible-distance |
32 |
Entities this close are never hidden. The larger of this and close-visible-distance is used. |
close-visible-distance |
32 |
Entities this close are never hidden, so nametags behind walls stay visible. 0 turns it off. |
above-ground-visible-distance |
64 |
When the player and the entity are both above ground, entities this close are never hidden. 0 hides them behind walls even above ground. |
tracked-resync-ticks |
200 |
Ticks between full rebuilds of the nearby entity list (minimum 1). |
max-distance |
64 |
Farthest distance entities are considered, in blocks. Also capped by the entity tracking range in spigot.yml. |
checks-per-tick |
12 |
Entities checked per player per tick. 0 = no limit. |
hide-player-health |
true |
Spoof other players' health. |
spoofed-health |
20.0 |
Health shown for other players. |
hide-sounds |
true |
Hide and jitter distant sounds. |
sound-categories |
HOSTILE, NEUTRAL, PLAYERS, BLOCKS |
Sound categories that are affected. |
sound-jitter-distance |
10 |
Sounds farther than this are moved slightly. |
sound-jitter-blocks |
3 |
How far a sound can be moved. 0 turns jitter off. |
sound-hide-distance |
48 |
Sounds farther than this are dropped. |
hide-mining-progress |
true |
Hide block-crack animations of hidden players. |
hide-waypoints |
true |
Hide hidden players from the locator bar. |
xray-detection
| Key | Default | Description |
|---|---|---|
enabled |
false |
Turn the module on or off. |
disabled-worlds |
[] |
Worlds where it is off. |
window-minutes |
30 |
Length of the mining history that is checked. |
min-stone-mined |
1000 |
Stone a player must mine before an alert can fire. |
min-veins |
4 |
Veins of one ore a player must find before an alert can fire. |
alert-cooldown-seconds |
300 |
Seconds between alerts for the same player and ore. |
stone-blocks |
stone, deepslate, tuff, granite, diorite, andesite, netherrack, basalt, blackstone | Blocks counted as stone mining. |
thresholds.diamond_ore |
1.2 |
Alert when veins per 100 stone is above this. |
thresholds.ancient_debris |
1.5 |
Same, for ancient debris. |
thresholds.emerald_ore |
1.0 |
Same, for emerald ore. |
Add more ores under thresholds (using the plain block name, for example gold_ore: 4.0) to track them. Remove a line to stop tracking that ore.
anti-seedcracker
| Key | Default | Description |
|---|---|---|
enabled |
true |
Randomize the hashed seed sent to each player. Also needed for dungeon scrambling. Changing it needs a restart. |
scramble-dungeons |
true |
Scramble the floor pattern around monster spawners. |
dungeon-floor-radius |
4 |
Blocks around a spawner that are scrambled (minimum 1). |
dungeon-floor-blocks |
mossy_cobblestone |
Floor blocks that are replaced. |
dungeon-floor-replacement |
cobblestone |
Block shown instead. |
messages.yml
Every message supports {prefix}, colour codes and hex colours (&#RRGGBB). Each entry can send chat lines, an action bar, a title and a sound, each with its own on/off switch.
| Message | Placeholders |
|---|---|
no-permission, usage, reloaded, player-only |
{prefix} |
status |
{xray}, {freecam}, {esp}, {viewers}, {ores}, {blocks}, {entities}, {faults}, {modules}, {self-xray}, {self-freecam}, {self-esp}, {self-packets} |
xray-alert |
{player}, {ore}, {veins}, {stone}, {rate}, {limit} |
gui-added, gui-removed, gui-already-listed |
{entry} |
gui-hand-empty |
none |
The state-* entries (state-on, state-off, state-running and so on) are the words used in /krypton status and can be reworded.
Config menu
The menu layout is fixed inside the jar and is not configurable. There is no gui.yml.
Integrations
| Plugin | Effect |
|---|---|
| Clover server software | If detected, Krypton keeps its modules off because Clover already includes these protections. |
Krypton has no placeholders and does not need PlaceholderAPI.
Developer API
Krypton has no public developer API or events.
FAQ
Krypton says waiting for license check or off (license check failed).
Check license-key in config.yml, make sure the server can make outgoing HTTPS connections, then restart.
Krypton says off (unsupported server version, see console).
The server software changed internals Krypton relies on. Read the SEVERE line in the console, and check that you are on Paper or Folia 1.21.4 or newer.
Staff can see through the ground or see ores.
They probably have a bypass permission. Give them krypton.bypass.xray, krypton.bypass.freecam or krypton.bypass.esp only if they should see the real world. Players in a world listed in disabled-worlds are not protected either.
Hide underground does nothing.
It is off by default, so set anti-xray.hide-underground: true. It also needs anti-freecam.enabled: true, the world must not be in anti-freecam.disabled-worlds, the player must not have krypton.bypass.freecam, and the world type must be listed in hide-underground-environments.
Areas I just dug into look wrong for a moment.
Hidden areas are revealed by sight rays. Raise hide-underground-rays-per-tick or hide-underground-distance if you want them to appear faster, at some CPU cost.
Chunks flash or resend after I change a setting. Changes that alter what players see make Krypton resend nearby chunks to online players so the new rules apply right away. This is expected.
Does it work with other plugins that edit blocks? Yes. Block changes from breaking, explosions, pistons, fire, fading and entities that change blocks are handled, and the surrounding ores are revealed to players who can see them.
How do I lower the server cost?
Lower ray-trace-checks-per-tick, hide-underground-rays-per-tick, block-entity-checks-per-tick and Anti-ESP checks-per-tick, raise check-interval-ticks, or reduce max-distance. Raising idle-recheck-ticks also helps. hide-underground is the heaviest part and is off by default.
Can I turn one module off?
Yes. Set that module's enabled to false, or left-click its tile in the menu. Xray Detection works on its own.

