Locators
Locators 为你的服务器添加了可配置的玩家追踪物品。右键点击定位器即可显示与匹配在线玩家的近似距离和方向。
所有类型的定位器都通过 JSON 进行配置。你可以创建不精确的长距离指南针、精确定位设备、仅限团队使用的定位器等更多功能。
特性
- 将任意 Minecraft 物品转化为定位器。
- 创建无限数量的定位器类型。
- 为每种定位器类型分配唯一 ID。
- 配置最大检测范围。
- 分别启用或禁用距离、偏航角(yaw)和俯仰角(pitch)的输出。
- 为每次测量配置独立的随机误差。
- 在聊天中点击偏航角或俯仰角数值,自动旋转视角。
- 结果仅对使用定位器的玩家可见。
- 通过记分板标签过滤目标。
- 通过 LuckPerms 主组和继承组过滤目标。
- 当 LuckPerms 不可用时,自动回退到记分板标签。
- 为使用和使用权限分别配置独立的权限。
- 跨服务器重启保留冷却时间。
- 使用每个玩家共享的冷却时间,或为每个物理物品单独设置冷却时间。
- 无需重启服务器即可重新加载配置。
目标过滤
提供两种过滤模式:
scoreboard_tag — 检测具有指定记分板标签的玩家。一个玩家可以同时拥有多个标签。
luckperms_group — 检测指定 LuckPerms 组的成员,包括继承组。
如果未安装 LuckPerms 或其 API 不可用,luckperms_group 会自动检查是否存在同名记分板标签。
使用 all 可禁用目标过滤。
冷却时间
支持两种冷却模式:
- 每个玩家和定位器类型共享的冷却时间。
- 每个物理定位器物品单独的冷却时间。
活跃冷却时间会保存到文件中,并在正常服务器重启后保留。
命令
/locators give <player> <id> <amount>
/locators reload
/locator resetTypeCooldown <type|*> <UUID|name|*>
冷却重置命令支持使用 * 来选择所有定位器类型或所有玩家。
安装
- 将插件 JAR 文件放入服务器的
plugins 目录。
- 重启服务器。
- 编辑
plugins/Locators/locators.json。
- 修改配置后运行
/locators reload。
LuckPerms 是可选依赖项。
兼容性
- Minecraft 1.16.5 及更高版本
- Spigot
- Paper
- Purpur
- Mohist
- Youer
- 其他兼容 Bukkit 的服务端实现
- Java 8+
该插件基于 Spigot API 1.16.5 构建,未使用内部 CraftBukkit 或 NMS 类。
Discord:
Locators
Locators adds configurable player-tracking items to your server. Right-clicking a locator displays the approximate distance and direction to matching online players.
All locator types are configured through JSON. You can create inaccurate long-range compasses, precise tracking devices, team-specific locators, and more.
Features
- Turn any Minecraft item into a locator.
- Create an unlimited number of locator types.
- Assign a unique ID to every locator type.
- Configure the maximum detection range.
- Enable or disable distance, yaw, and pitch output separately.
- Configure independent random errors for every measurement.
- Click yaw or pitch values in chat to automatically turn the camera.
- Results are visible only to the player using the locator.
- Filter targets by scoreboard tags.
- Filter targets by primary and inherited LuckPerms groups.
- Automatically fall back to scoreboard tags when LuckPerms is unavailable.
- Configure separate permissions for using and giving each locator.
- Preserve cooldowns across server restarts.
- Use shared per-player cooldowns or individual cooldowns for each physical item.
- Reload the configuration without restarting the server.
Target Filtering
Two filtering modes are available:
scoreboard_tag — detects players with the specified scoreboard tag. A player can have multiple tags at the same time.
luckperms_group — detects members of the specified LuckPerms group, including inherited groups.
If LuckPerms is not installed or its API is unavailable, luckperms_group automatically checks for a scoreboard tag with the same name.
Use all to disable target filtering.
Cooldowns
Two cooldown modes are supported:
- A shared cooldown for each player and locator type.
- A separate cooldown for every physical locator item.
Active cooldowns are saved to a file and survive normal server restarts.
Commands
/locators give <player> <id> <amount>
/locators reload
/locator resetTypeCooldown <type|*> <UUID|name|*>
The cooldown reset command supports * to select every locator type or every player.
Installation
- Place the plugin JAR in the server’s
plugins directory.
- Restart the server.
- Edit
plugins/Locators/locators.json.
- Run
/locators reload after making changes.
LuckPerms is an optional dependency.
Compatibility
- Minecraft 1.16.5 and newer
- Spigot
- Paper
- Purpur
- Mohist
- Youer
- Other Bukkit-compatible server implementations
- Java 8+
The plugin is built against Spigot API 1.16.5 and does not use internal CraftBukkit or NMS classes.
Discord:
评论 0
登录后参与评分
还没有评论,来抢沙发吧