? RadarX
RadarX 是一款轻量级、高度优化的 Minecraft 插件,适用于 Spigot 和 Paper 服务器。它提供自定义的 PlaceholderAPI 占位符,用于计算 实时距离 以及相对于观察者视角的 相对 2D 方向雷达箭头(↑, ↗, →, ↘, ↓, ↙, ←, ↖),指向玩家或坐标。
非常适合用于小游戏、阵营、生存和 SMP 服务器,在计分板、动作栏、标题屏幕或全息图中显示目标信息!
✨ 功能特性
- ? 相对方向箭头:显示一个二维箭头,指向相对于玩家当前视角(偏航角)的目标玩家或坐标。
- ? 3D 与 2D 距离追踪:计算精确的 3D 距离或水平 2D 距离(忽略 Y 轴高度)。
- ⚡ 激进式内存缓存:可配置的缓存时间,确保即使每秒刷新 20 次计分板也能实现 零 TPS 损耗。
- ? 跨维度支持:当目标处于不同维度时(例如下界/末地),显示自定义指示器。
- ⚙️ 完全可配置:自定义所有箭头符号、距离格式、离线消息和缓存持续时间。
? 占位符
占位符可在任何支持 PlaceholderAPI 的地方使用(计分板、动作栏、全息图、Tab 列表、聊天等):
? 方向雷达箭头
| 占位符 |
描述 |
%radarx_arrow_xyz_<x>_<y>_<z>% |
指向特定 X, Y, Z 坐标的箭头 |
%radarx_arrow_xz_<x>_<z>% |
指向特定 X, Z 坐标的箭头 |
%radarx_arrow_player_<name>% |
指向其他在线玩家的箭头 |
? 距离追踪
| 占位符 |
描述 |
%radarx_distance_xyz_<x>_<y>_<z>% |
到 X, Y, Z 的 3D 距离(米/方块) |
%radarx_distance_xz_<x>_<z>% |
到 X, Z 的 2D 距离(米/方块) |
%radarx_distance_player_<name>% |
到其他在线玩家的 3D 距离 |
⚙️ 配置文件 (config.yml)
format:
different_world: "N/A"
player_offline: "Offline"
distance_text: "%distance%m"
round_distance: true
optimization:
# 缓存时间(毫秒)(防止快速计分板更新导致 TPS 下降)
cache_time_ms: 500
arrows:
front: "↑"
front_right: "↗"
right: "→"
back_right: "↘"
back: "↓"
back_left: "↙"
left: "←"
front_left: "↖"
? 要求与安装
- 需要 Minecraft 1.13+(Spigot、Paper、Purpur 等)。
- 需要在服务器上安装 PlaceholderAPI。
- 将 RadarX.jar 放入 /plugins/ 文件夹并重启服务器。
- 根据需要自定义 plugins/RadarX/config.yml!
? 命令与权限
| 命令 |
描述 |
权限 |
/radarx reload |
重新加载配置 |
radarx.admin |
? RadarX
RadarX is a lightweight, highly-optimized Minecraft plugin for Spigot and Paper servers. It provides custom PlaceholderAPI placeholders to calculate real-time distances and relative 2D directional radar arrows (↑, ↗, →, ↘, ↓, ↙, ←, ↖) pointing toward players or coordinates relative to where the viewer is looking.
Perfect for minigames, Factions, Survival, and SMP servers to display objectives in scoreboards, action bars, title screens, or holograms!
✨ Features
- ? Relative Directional Arrows: Displays a 2D arrow pointing toward a target player or coordinate relative to the player's current view (yaw).
- ? 3D & 2D Distance Tracking: Calculate exact 3D distance or horizontal 2D distance (ignoring Y level).
- ⚡ Aggressive In-Memory Caching: Configurable cache time to ensure ZERO TPS impact, even when refreshed 20 times per second in scoreboards.
- ? Cross-Dimensional Support: Custom indicator when the target is in a different dimension (e.g., Nether/End).
- ⚙️ Fully Configurable: Customize all arrow symbols, distance formats, offline messages, and cache durations.
? Placeholders
Placeholders can be used anywhere PlaceholderAPI is supported (Scoreboards, ActionBars, Holograms, Tab, Chat, etc.):
? Directional Radar Arrows
| Placeholder |
Description |
%radarx_arrow_xyz_<x>_<y>_<z>% |
Arrow pointing toward specific X, Y, Z coordinates |
%radarx_arrow_xz_<x>_<z>% |
Arrow pointing toward specific X, Z coordinates |
%radarx_arrow_player_<name>% |
Arrow pointing toward another online player |
? Distance Tracking
| Placeholder |
Description |
%radarx_distance_xyz_<x>_<y>_<z>% |
3D distance (meters/blocks) to X, Y, Z |
%radarx_distance_xz_<x>_<z>% |
2D distance (meters/blocks) to X, Z |
%radarx_distance_player_<name>% |
3D distance to another online player |
⚙️ Configuration (config.yml)
format:
different_world: "N/A"
player_offline: "Offline"
distance_text: "%distance%m"
round_distance: true
optimization:
# Cache time in milliseconds (prevents TPS drop on fast scoreboard updates)
cache_time_ms: 500
arrows:
front: "↑"
front_right: "↗"
right: "→"
back_right: "↘"
back: "↓"
back_left: "↙"
left: "←"
front_left: "↖"
? Requirements & Installation
- Requires Minecraft 1.13+ (Spigot, Paper, Purpur, etc.).
- Requires PlaceholderAPI installed on your server.
- Drop RadarX.jar into your /plugins/ folder and restart your server.
- Customize plugins/RadarX/config.yml to fit your needs!
? Commands & Permissions
| Command |
Description |
Permission |
/radarx reload |
Reloads configuration |
radarx.admin |
评论 0
登录后参与评分
还没有评论,来抢沙发吧