О плагине Phantom
Защитите свой сервер от X-Ray и Freecam с помощью лучшего плагина antixray и antifreecam.
- Автор
- px86
- Первая публикация
- Последнее обновление
- Категории
- Игровые механики, Управление
Phantom
Phantom — это продвинутый плагин против xray для серверов Paper и Folia. Он скрывает подземный ландшафт, руды, контейнеры, сущности, подземелья, шахты и другую ценную информацию, пока игроки не увидят эту область легальным образом.
Вместо того чтобы заменять только отдельные руды, Phantom скрывает более глубокий ландшафт и открывает его естественным образом, пока игроки путешествуют под землей. Затем трассировщик лучей показывает руды, контейнеры и сущности только тогда, когда у игрока есть прямая линия обзора. Это делает эксплойты cave-finder, freecam, xray и подземных сооружений гораздо менее полезными, сохраняя при этом плавный обычный геймплей.
Особенности
- Скрывает подземный ландшафт от игроков выше настроенного уровня раскрытия
- Естественно открывает пещеры и туннели по мере исследования игроками
- Скрытие руд и контейнеров с трассировкой лучей — блоки остаются скрытыми, пока у глаза игрока есть прямая линия обзора
- Скрытие сущностей с трассировкой лучей — живые сущности остаются скрытыми, пока они не станут действительно видимыми
- Скрывает комнаты спавнеров подземелий и шахт, пока игрок не подойдет близко
- Необязательное скрытие аметистовых геодов (выключено по умолчанию)
- Необязательная память о чанках, которые игрок уже видел (
remember-visited, выключено по умолчанию) - Декорации пещер, такие как светящийся лишайник и капельник, не запечатывают туннели для лучей раскрытия
- Списки включения и отключения по мирам
- Настраиваемый блок замены
- Необязательный обход прав
- Необязательное пропускание игроков Geyser/Floodgate
- Существующие файлы
config.ymlсохраняют свои значения; отсутствующие ключи добавляются при загрузке - Поддержка Paper и Folia
- Элементы управления производительностью для больших серверов
Рекомендуемая настройка Paper Anti-Xray
Для лучшей защиты используйте Phantom вместе со встроенным в Paper анти-xray с включенным Engine Mode 1.
Paper Engine Mode 1 случайным образом заменяет руды, чтобы клиенты не могли доверять необработанным данным чанков. Затем Phantom добавляет скрытие более глубокого ландшафта, раскрытие руд и сущностей с трассировкой лучей, скрытие сооружений и видимость пещер на основе исследования. Использование обоих обеспечивает гораздо более надежное покрытие, чем каждая система по отдельности.
Не используйте Paper Engine Mode 2 вместе с Phantom. Phantom уже обрабатывает скрытие руд по блокам с раскрытием по прямой линии обзора.
Установка
- Скачайте
Phantom-1.2.0.jar. - Поместите его в папку
pluginsвашего сервера. - Перезапустите сервер.
- Настройте Phantom в
plugins/Phantom/config.yml. - Используйте
/phantom status, чтобы подтвердить, что защита активна.
Phantom требует PacketEvents 2.13.0. Если PacketEvents еще не установлен, Phantom попытается автоматически скачать и загрузить эту версию.
Команды
Alias: /ph
/phantom— Показать справку по командам/phantom help— Показать справку по командам/phantom status— Посмотреть текущий статус защиты/phantom on— Включить защиту/phantom off— Приостановить защиту/phantom reload— Перезагрузить конфигурацию и повторно синхронизировать игроков онлайн/phantom refresh <player>— Обновить ландшафт игрока/phantom refreshall— Обновить всех игроков онлайн/phantom check [player]— Осмотреть состояние защиты игрока/phantom worlds— Посмотреть настроенные и загруженные миры/phantom version— Показать установленную версию
Права доступа
phantom.admin— Доступ ко всем командам Phantomphantom.bypass— Обход защиты, когдаaccess.allow-bypassимеет значение true
Конфигурация по умолчанию
# Phantom — anti-xray protection
# Toggle everything without unloading the plugin.
enabled: true
# ---------------------------------------------------------------------------
# Depth (block Y)
# ---------------------------------------------------------------------------
# Terrain at or below this Y is replaced with the fill block for protected clients.
mask-y: 16
# Players at or below this Y are treated as "revealed" (no depth obfuscation).
# Should usually be at or above mask-y.
clear-y: 24
# ---------------------------------------------------------------------------
# Worlds
# ---------------------------------------------------------------------------
worlds:
# Worlds where Phantom protection is enabled. At least one world is required.
enabled:
- world
# Worlds where Phantom protection is always disabled (even if also listed under enabled).
disabled:
- world_nether
- world_the_end
- spawn
# ---------------------------------------------------------------------------
# Access
# ---------------------------------------------------------------------------
access:
# When true, players with phantom.bypass skip protection.
allow-bypass: true
# Skip Geyser/Floodgate players (UUID starts with 000000).
skip-bedrock-players: false
# ---------------------------------------------------------------------------
# Fill (what hidden terrain looks like)
# ---------------------------------------------------------------------------
fill:
enabled: true
# Any solid block material name (e.g. DEEPSLATE, STONE, NETHERRACK).
block: DEEPSLATE
# ---------------------------------------------------------------------------
# Structures
# ---------------------------------------------------------------------------
structures:
dungeons:
enabled: true
# Resend a dungeon room when the player is this close (blocks).
reveal-distance: 6
# Nearby cobblestone/mossy cobblestone required to treat a spawner as a vanilla dungeon.
min-cobblestone: 5
# Helps avoid hiding custom spawner builds. Set 0 to only require cobblestone/chests.
min-mossy-cobblestone: 2
amethyst-geodes:
enabled: false
# Resend a geode when the player is this close (blocks).
reveal-distance: 6
# Minimum nearby amethyst blocks/buds plus geode-shell signature blocks.
min-signature-blocks: 4
mineshafts:
enabled: true
# Resend a mineshaft spawner room when the player is this close (blocks).
reveal-distance: 6
# Hide spawner rooms that have at least this many nearby cobwebs.
min-cobwebs: 6
# ---------------------------------------------------------------------------
# Reveal (ray-based cave / tunnel visibility)
# ---------------------------------------------------------------------------
reveal:
# How often (in ticks) to re-evaluate visibility for online players.
check-every-ticks: 2
# When true, chunks that leave the reveal area are hidden again for that player.
# When false, once revealed they stay visible for the session.
rehide-when-leaving: false
# When true, chunks a player has already seen stay unobfuscated and are saved to visited.sqlite.
# Set true to remember visited chunks.
remember-visited: false
# Skip redundant movement-triggered reveal work when the player barely moved. The periodic
# check-every-ticks retry still reruns the trace for chunk-loading races.
optimized-movement: true
# Base number of rays cast for cave visibility (higher = denser, more CPU).
ray-count: 64
# Extra chunks beyond the calculated radius to keep visible.
extra-chunk-radius: 3
# Hard ceiling on reveal radius in chunks.
max-chunk-radius: 4
# Continuously re-send nearby chunks while a player is underground.
continuous:
enabled: true
radius: 4
# Max chunks queued for resend per player per tick (higher = faster catch-up, more bandwidth).
max-chunks-per-tick: 192
# Soft cap on total revealed chunks tracked per player (0 = unlimited).
total-limit: 0
# ---------------------------------------------------------------------------
# Ore trace (RayTraceAntiXray-style per-block hiding)
# ---------------------------------------------------------------------------
# Air-exposed ores and containers are replaced with stone / deepslate /
# netherrack / end stone when a chunk is sent. A background ray tracer then
# reveals a block only when the player's eye has a clear line of sight to it.
ore-trace:
enabled: true
# Also trace third-person (F5) camera positions. More CPU.
third-person: false
# Blocks farther than this stay in their last hidden/revealed state.
distance: 64.0
# Re-hide blocks the player can no longer see.
rehide: true
# At or beyond this distance a previously revealed block is treated as hidden.
rehide-distance: 60.0
# Cap on initially hidden, ray-traced positions per chunk (bottom-up).
max-blocks-per-chunk: 100
# How often (in ticks) to re-trace tracked ores.
update-ticks: 2
# Empty list uses the built-in ore + container catalog.
blocks: []
# Materials that stay revealed once seen, even if rehide is true.
never-rehide: []
# ---------------------------------------------------------------------------
# Entity trace (ray-traced entity hiding)
# ---------------------------------------------------------------------------
# Living entities are hidden until a line of sight from the player's eye is
# clear. Work is budgeted and skipped when neither the viewer nor the entity
# moved enough.
entity-trace:
enabled: true
distance: 64.0
rehide: true
# Max entities traced per player per tick.
max-per-tick: 48
hide-players: false
hide-items: false
hide-projectiles: false
# ---------------------------------------------------------------------------
# Performance
# ---------------------------------------------------------------------------
performance:
# Prefer handling packet work off the main server thread when possible.
# Disable only if you hit async-related errors.
async-packets: true
# Background worker threads for obfuscation/reveal work.
worker-threads: 2
Совместимость
- Paper
- Folia
- Minecraft 1.21.x
- Java 21
- PacketEvents 2.13.0
Для самой надежной настройки защиты от xray объедините Phantom с Paper Anti-Xray Engine Mode 1.
Совместимость Phantom
Ядра и прокси Minecraft
Поддерживаемые версии Minecraft
Нажмите на версию, чтобы посмотреть плагины для неё. Для этого плагина подберите сборку по версии Minecraft и ядру.
