EventAntiXray
a lightweight Minecraft Fabric mod designed for server administrators to detect potential X-ray cheating
截图
介绍
EventAntiXray
EventAntiXray is a lightweight, purely observational Fabric mod for server administrators who want to detect potential X-ray cheating without impacting server performance or gameplay. It intelligently tracks player mining activity for valuable blocks and discreetly alerts staff when it detects suspicious patterns, complete with Discord integration.
Dependencies
Features
- Observational Detection: Monitors block breaks without interfering with gameplay. It never cancels actions, sends packets, or affects block visibility, ensuring zero impact on players.
- Time-Window Analysis: Detects suspicious activity by tracking how many valuable blocks a player mines within a configurable time period (e.g., 10 diamonds in 30 minutes).
- Progressive Alerts: Sends an initial alert and then tracks continued suspicious activity, sending follow-up alerts with a special prefix if the behavior persists.
- Discord Webhook Integration: Sends detailed, customizable embed messages to a Discord channel when an alert is triggered, including the player’s inventory at the time of detection. Alerts for continued activity will smartly update the original Discord message.
- Player-Placed Block Tracking: Features an optional MySQL database integration to track blocks placed by players, effectively eliminating false positives from players mining their own placed ores.
- Highly Configurable: Customize everything from thresholds and time windows on a per-block basis to the in-game alert messages and sounds.
- Performance First: Built to be extremely lightweight. It has zero impact on server TPS and uses efficient data structures to minimize memory usage, with non-blocking operations for webhooks.
Commands
The primary command is /antixray, with the alias /eax.
| Command | Permission | Description |
| :— | :— | :— |
| /antixray reload | antixray.reload | Reloads the config.json file from disk, applying any changes immediately. |
Configuration
EventAntiXray uses a single, well-documented configuration file located at config/eventantixray/config.json. This file is broken down into clear sections for easy management.
tracked_blocks – The Core of Detection
This is a list where you define every block you want to monitor. Each entry has several key options:
| Setting | Description |
| :— | :— |
| block_id | The Minecraft ID for the block (e.g., "minecraft:diamond_ore"). |
| alert_threshold | The number of blocks a player must break within the time_window_minutes to trigger the first alert. |
| time_window_minutes | The duration (in minutes) that the mod will look back in a player’s mining history to count blocks. |
| subsequent_alert_threshold | After the first alert, this is the number of additional blocks the player must break to trigger a follow-up “Continued” alert. |
| reset_after_minutes | The number of minutes of inactivity (mining this specific block) after which the tracking for a player will automatically reset. Set to 0 to never reset. |
| alert_message | The customizable, MiniMessage-formatted message sent to staff. Supports placeholders like {player}, {count}, {block}, and coordinates. |
alerts – Customizing Staff Notifications
This section controls how staff are notified in-game.
sound: Configure thesound_id,volume, andpitchof the sound played to staff on an alert. You can even set multipliers to make the sound louder or higher-pitched for each subsequent alert.continued_alert_prefix: A MiniMessage-formatted prefix added to alerts for ongoing suspicious activity (e.g.,"<red>[Continued]</red> ").
webhook – Discord Integration
Connect the mod to your Discord server for remote monitoring.
enabled: A simpletrue/falsetoggle to turn on webhook notifications.url: The full URL of your Discord webhook. Alerts will be sent here as detailed embed messages.
database – Preventing False Positives
This section is for configuring the optional MySQL database to track player-placed blocks.
enabled: Iftrue, the mod will connect to your MySQL database to log and check against blocks placed by players. When a player breaks a block, the mod will first check the database. If the block was player-placed, it will be ignored for X-ray detection, preventing false alerts.- Connection Details: The config provides fields for your database
address,databasename,username, andpassword, along with other standard connection options.
常见问题
EventAntiXray 支持哪些 Minecraft 版本?
EventAntiXray 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
EventAntiXray 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
Hysocs 的其他作品
查看全部 →E-Utils
EverlastingUtils is a robust utility library for Minecraft mod development and all of Hysocs mods.
E-Utils
A modding utility that provides reusable components for configuration files, command systems, and user interfaces
CobbleSpawners
This Cobblemon addon mod allows map creators or admins to place custom Pokémon spawners, manage spawn settings via a GUI, and control Cobblemon spawning behavior, including Pokémon species, spawn chances, and custom stats.
CobbleHunts
CobbleHunts is a Minecraft Fabric Hunts mod that adds a hunting system to Cobblemon. It includes global and solo Pokémon hunting missions with customizable options, rewards, and an easy-to-use GUI.
评论
登录后评论和评分