alyxz1234
📎 1 file 3,659 chars
📄
pasted-code-1792489776554.txt
txt 27 lines
▶
# DonutAntiXray: Protecting Hidden Bases in Minecraft

## Introduction

DonutAntiXray is a Minecraft server plugin designed to improve server security by preventing players from using cheats such as X-ray, ESP, and Free Cam to locate hidden bases. These cheats can give players an unfair advantage by allowing them to see information about underground areas that normal players should not be able to see. For survival and faction servers, this creates a serious problem because players spend time and resources building secret bases to protect their valuable items. DonutAntiXray aims to reduce this risk by restricting the blocks that players can see underground.

## How DonutAntiXray Works

According to its BuiltByBit resource page, DonutAntiXray hides blocks below Y-level 16 and loads the full area when a player goes below Y-level 30. This approach is intended to make it more difficult for players using ESP or Free Cam cheats to discover underground structures and hidden bases. The plugin focuses on limiting information revealed to a player's client rather than simply relying on staff to catch suspicious behavior after a base has already been discovered.

The resource also recommends enabling the `tracking-range-y` setting in `paper-world-defaults.yml` for additional protection. This setting can complement the plugin's intended security approach, although server owners should verify the correct configuration and compatibility for their Minecraft version before using it.

## Importance for Minecraft Servers

Hidden bases are an important part of many survival, factions, and SMP servers. Players may build underground storage rooms, secret entrances, or protected areas containing valuable equipment. When cheaters can discover these locations unfairly, players may lose their items and become discouraged from continuing to play.

A plugin like DonutAntiXray can help reduce this problem by limiting the underground information available to clients. This may improve fairness, protect player-built structures, and make the server environment more enjoyable. However, no anti-cheat protection can guarantee that every hidden base will remain undiscovered, especially if players reveal their entrances or other players find them through legitimate exploration.

## Compatibility and Limitations

The resource page lists Bukkit and Paper as supported software and Minecraft versions 1.18 through 1.21. However, the page was last updated on May 16, 2025, and some user reviews report compatibility and support concerns. Server owners should therefore test the plugin carefully before installing it on a live server, especially when running newer Minecraft versions.

Performance is another consideration. One reviewer described the plugin as somewhat heavy on the server, while other reviews reported positive experiences. These opinions do not establish how it will perform on every server, so testing with the actual server software, player count, and configuration is important.

## Conclusion

DonutAntiXray is designed to protect Minecraft servers against X-ray, ESP, and Free Cam cheats by limiting underground information that players can access. Its main purpose is to make hidden bases more difficult to discover through unfair methods and to improve fairness for legitimate players. Although it may be useful for survival and faction servers, server owners should verify compatibility, evaluate performance, and test its behavior before deployment. With appropriate configuration and other security measures, anti-X-ray protection can be an important part of maintaining a fair and secure Minecraft server.
Kodari AI
KodariOct 20 at 10:00 am 1
DonutAntiXray
DonutAntiXray is a Minecraft Bukkit/Spigot plugin that protects hidden bases from X-ray, ESP, and Free Cam cheats. It restricts underground block visibility below Y-level 16 and loads the full area when players descend below Y-level 30. The plugin features configurable height thresholds, automatic world-guard integration, optimized block transmission using the Paper API, and a GUI-based configuration menu for server owners. It supports Minecraft versions 1.18-1.21, includes performance monitoring, and provides commands for toggling protection per-world and reloading settings dynamically without server restarts.

Created the DonutAntiXray plugin with configurable hide/reveal levels, target ores, fake block, and chunk radius. It sends per-player block changes and blocks breaking those hidden ores while the player is above the reveal level.

This is a best-effort visual obfuscation plugin, not a replacement for Paper’s built-in anti-xray packet obfuscation; it cannot guarantee protection against clients that inspect raw chunk data.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 324
src/main/java/com/kodari/donutantixray/DonutAntiXrayPlugin.java
package com.kodari.donutantixray;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class DonutAntiXrayPlugin extends JavaPlugin {
    private AntiXrayManager antiXrayManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        antiXrayManager = new AntiXrayManager(this);
        Bukkit.getPluginManager().registerEvents(new AntiXrayListener(antiXrayManager), this);
    }

    @Override
    public void onDisable() {
        if (antiXrayManager != null) {
            antiXrayManager.clear();
        }
    }
}