这个 Bukkit 插件通过所有已定义的 WorldGuard 区域来追踪 Minecraft 玩家的移动。
所有记录都会保存在一个 stats.yml 文件中,该文件会记录每个玩家进入每个已定义区域的次数。玩家所在的区域会在重新连接和服务器重启后继续保存。
本插件不直接依赖 WorldGuard:它直接从文件系统中读取由 WorldGuard 插件创建的区域文件。未使用任何 API 功能。
仅直接使用立方体区域(默认设置)。多边形区域将被扩展为最大的边界框(矩形),然后使用该区域进行检测。
记录玩家活动
本插件的主要用途是追踪玩家进入特定区域的次数。这可用于监控玩家活动、为进入特定区域提供奖励,或根据需要进行其他操作。
/anyone 命令
拥有权限的任何玩家均可使用 /anyone 命令来检查 任意 玩家在指定时刻是否处于某个区域内。以下是一个示例配置:
regions-query:
world_test:
spawn:
display: 出生点
warning: none
beds:
display: 休息区
warning: busy
lookout:
display: 瞭望塔
warning: empty
使用 /anyone 的玩家将收到每个已定义区域的状态报告。
- 名为 "spawn" 的区域将简单地显示其名称以及其中的人数(如果有)。
- 名为 "beds" 的区域如果为空,将以绿色高亮显示,表示可用;如果当前有人占用,则以红色显示。
- 名为 "lookout" 的区域则相反:如果无人值守则为红色,如果有人驻守则为绿色。
默认情况下,该命令将检查运行本插件的服务器上区域中的活跃玩家。您也可以将其配置为检查同一文件系统上可访问的另一台服务器,使用参数 worldguard-check(定义区域的位置)和 stats-check(记录访问的文件)。例如,您的配置文件可能如下所示:
worldguard-path: plugins/WorldGuard/
worldguard-check: ../server-other/plugins/WorldGuard/
stats-check: ../server-other/plugins/IOTracker/stats.yml
worlds: world_local,world_local_nether,world_local_the_end
regions-query:
world_other:
sora-monument:
display: 尼克斯大厅
warning: busy
配置
worldguard-path: WorldGuard 的路径,如果不是标准路径。默认为 plugins/WorldGuard/。
worldguard-check: 另一台服务器的 WorldGuard 路径(如果需要)。默认为 worldguard-path 的值。
stats-check: 可选。用于 /anyone 命令检查的文件,如果不是本服务器的文件。
worlds: 要监控活动的世界;以逗号分隔的列表。
regions-query: 哪些区域应包含在 /anyone 命令中。上文已解释。
命令
/anyone: 检查每个已定义区域中存在的玩家数量。
权限
iotracker.anyone: 使用 /anyone 命令的权限
为什么这个插件可靠?
我在自己的服务器上使用了所有的插件,我喜欢我的插件稳定、可靠且维护成本低。版本升级时出现问题的情况不会发生,但如果真的发生了,它们会被迅速修复。
支持我的工作
如果你喜欢我的工作,我 欢迎赞助! 我从 2011 年开始运营 Minecraft 服务器,为服务器所有者开发了多种插件和工具,现在正在逐步发布其中许多内容。你的支持将极大地鼓励我投入更多时间和精力于此,并修复可能随时间发现的问题!

This Bukkit plugin tracks the movement of Minecraft players through all defined WorldGuard regions.
All records go in a stats.yml file, which records the number of times that each player has entered each defined region. The regions a player is present in is saved through reconnections and server restarts.
This plugin doesn't have a direct dependency on WorldGuard: it reads the regions files created by the plugin directly from the filesystem. No API features are used.
Only cuboid regions (the default) are used as-is. Polys will be extended to the largest bounding box (a rectangle), then that area will be used for the detection.
Logging player activity
The first, main use of this plugin is to track how many times a player has entered a given region. This can be used to monitor player activity, grant rewards for entering a specific zone, or whatever else you see fit.
/anyone command
The /anyone command can be used by any player with the permission to check if anyone is within a region at the given moment. Here's a sample configuration:
regions-query:
world_test:
spawn:
display: Spawn point
warning: none
beds:
display: Sleeping quarters
warning: busy
lookout:
display: Watch tower
warning: empty
A player using /anyone will get a report on the status of each defined region.
- The region named "spawn" will simply display its name and the number of players there, if any.
- The one named "beds" will be highlighted in green if empty, meaning that it's available; and red if currently occupied.
- The one named "lookout" is the opposite: red if empty (no one is keeping watch), while green if someone is in position.
By default, the command will check for players active in the regions of the server running the plugin. You can instead configure it to check for another server accessible on the same file system with the parameters worldguard-check (where the regions are defined) and stats-check (the file with the recorded visits). For example, your config file could look like this:
worldguard-path: plugins/WorldGuard/
worldguard-check: ../server-other/plugins/WorldGuard/
stats-check: ../server-other/plugins/IOTracker/stats.yml
worlds: world_local,world_local_nether,world_local_the_end
regions-query:
world_other:
sora-monument:
display: Halls of Nyx
warning: busy
Configuration
worldguard-path: The path to WorldGuard, if not the standard. Defaults to plugins/WorldGuard/.
worldguard-check: The path to WorldGuard of another server, if wanted. Defauls to the value of worldguard-path.
stats-check: Optional. The file to examine for the /anyone command, if not the one for this server.
worlds: The worlds to monitor for activity; comma-separated list.
regions-query: Which regions should be included in the /anyone command. Explained above.
Commands
/anyone: Check the amount of players present in each defined region.
Permissions
iotracker.anyone: Usage of the /anyone command
Why is this plugin reliable?
I use all of my plugins on my own servers, and I like my plugins to be stable, reliable and low maintenance. Breaks on version upgrades are not expected, but should they happen, they will be quickly fixed.
Support my work
If you enjoy my work, I welcome sponsors! I've been running Minecraft servers since 2011, developed several plugins and tools for server owners, and I'm now working my way through releasing many of them. Your support would go a long way toward encouraging me to put more time and effort into this, plus fix any issues that might be discovered over time!

评论 0
登录后参与评分
还没有评论,来抢沙发吧