猎杀游戏
重要提示: 插件已打包为 manhunt-plugin.zip,但尚未在服务器上编译或测试。由于开发环境无法联网,Paper API 依赖项未能下载。因此,该项目可能存在编译错误,尤其是与 Paper 26.3 API 兼容性的问题。
游戏玩法
/manhunt runner 和 /manhunt hunter 让你加入相应的队伍。
/manhunt runner <Player> 允许拥有 manhunt.admin 权限的管理员分配其他玩家。
/manhunt start [Seed] 生成三个新世界(主世界、下界和末地),传送所有参与者,并使猎人冻结 30 秒。
- 猎人会获得一个追踪指南针。右键点击它会更新指南针以显示当前维度中逃脱者的最后已知位置。
- 逃脱者胜利条件: 在猎杀游戏世界中击杀末影龙。
- 猎人胜利条件: 所有逃脱者被消灭。
- 被淘汰的逃脱者将切换至旁观模式,而被淘汰的猎人则会重生。
- 游戏结束后,所有玩家将被传送回原始位置,生成的世界将被删除。
命令
其他命令包括:
/manhunt leave – 离开当前游戏。
/manhunt stop – 停止当前游戏。
/manhunt status – 显示当前游戏状态。
/manhunt track <Runner> – 追踪特定的逃脱者。
/manhunt compass – 获取追踪指南针。
配置
以下设置可在 config.yml 中进行自定义:
- 猎人初始头颅
- 难度
- 世界边界
- 世界删除行为
- 所有插件消息
玩家数据保护
在将玩家传送到猎杀游戏世界之前,插件会将他们的物品栏、位置、经验等级和健康值保存到磁盘。
这些数据在游戏结束时会被恢复。它也会在服务器崩溃时保留下来,并在受影响的玩家下次加入服务器时恢复。
测试说明
该插件尚未编译或测试。在首次测试时需特别注意以下方面:
- 自定义维度传送门: 下界和末地传送门使用
PlayerPortalEvent 手动处理,因为自定义世界不会自动链接。是否 Paper 能正确接受指定的目的地尚未经过验证。
- 末影龙生成: 插件假设自定义末地世界会自动生成其自己的末影龙。此行为尚未经过验证。
- 世界删除: 仅删除名称以
manhunt_ 开头的目录。如果 Paper 26.3 使用了不同的世界目录结构,插件将保留这些世界不变,并在控制台记录警告。
- 世界生成: 所有三个世界在游戏开始时同步创建。这可能会导致暂时性的服务器卡顿,具体取决于硬件性能。
限制
- 同一时间只能运行一个猎杀游戏。
- 队伍和游戏状态存储在内存中。如果在游戏进行中重启服务器,该轮游戏将终止。
- 进度和统计信息未与普通世界的区分开来。
Manhunt
Important: The plugin is complete as manhunt-plugin.zip, but it has not been compiled or tested on a server. The development environment had no internet access, so the Paper API dependencies could not be downloaded. As a result, the project may contain compilation errors, particularly regarding Paper 26.3 API compatibility.
Gameplay
/manhunt runner and /manhunt hunter assign yourself to the respective team.
/manhunt runner <Player> allows administrators with manhunt.admin to assign another player.
/manhunt start [Seed] generates three new worlds (Overworld, Nether, and End), teleports all participants, and freezes the Hunters for 30 seconds.
- Hunters receive a tracking compass. Right-clicking it updates the compass to the Runner's last known location in the current dimension.
- Runners win when the Ender Dragon is killed in the Manhunt world.
- Hunters win when all Runners have been eliminated.
- Eliminated Runners are switched to spectator mode, while eliminated Hunters respawn.
- After the game ends, all players are teleported back to their original locations and the generated worlds are deleted.
Commands
Additional commands include:
/manhunt leave – Leave the current game.
/manhunt stop – Stop the current game.
/manhunt status – Display the current game status.
/manhunt track <Runner> – Track a specific Runner.
/manhunt compass – Obtain a tracking compass.
Configuration
The following settings can be customized in config.yml:
- Hunter head start
- Difficulty
- World border
- World deletion behavior
- All plugin messages
Player Data Protection
Before teleporting players into the Manhunt worlds, the plugin saves their inventories, locations, experience levels, and health to disk.
This data is restored when the game ends. It is also preserved across server crashes and restored the next time the affected player joins the server.
Testing Notes
The plugin has not been compiled or tested yet. The following areas require particular attention during the first test:
- Custom dimension portals: Nether and End portals are handled manually using
PlayerPortalEvent, since custom worlds are not automatically linked. Whether Paper accepts the specified destination correctly has not been verified.
- Ender Dragon spawning: The plugin assumes that the custom End world automatically generates its own Ender Dragon. This behavior has not been verified.
- World deletion: Only directories whose names start with
manhunt_ are deleted. If Paper 26.3 uses a different world directory structure, the plugin will leave the worlds untouched and log a warning to the console.
- World generation: All three worlds are created synchronously when a game starts. This may cause temporary server lag, depending on the hardware.
Limitations
- Only one Manhunt game can run at a time.
- Teams and game state are stored in memory. Restarting the server during an active game will terminate the round.
- Advancements and statistics are not separated from those of the regular worlds.
评论 0
登录后参与评分
还没有评论,来抢沙发吧