Hardcore Relay 插件
概述
Hardcore Relay 是一款专为 PaperMC 服务器设计的独特且充满挑战的多人游戏模式。它将经典的硬核体验转变为一种合作的高风险接力赛,多名玩家共享控制一个角色。通过共享身体、物品栏以及有限的生命次数,每位玩家的回合都至关重要。一次失误可能会给整个团队带来后果,因此沟通和策略对于生存至关重要。
该插件设计为独立运行且易于管理。所有游戏状态(包括共享角色的物品栏、位置和死亡状态)都直接绑定到世界数据中。这意味着重新开始游戏只需创建一个新地图即可。
视频示例:
功能特性
- 定时接力: 对单个共享角色的控制权会按照可配置的时间间隔在所有在线玩家之间轮换。
- 共享身体: 生命值、饥饿值、饱和度、经验值、药水效果以及剩余空气量会在所有玩家间同步,并在轮换过程中保持持久。物品栏和末影箱也是共享的。
- 无缝过渡: 玩家的动量、速度甚至鞘翅滑翔都会在回合之间保留下来,确保高速移动和坠落过程不受中断。
- 连续死亡系统: 如果达到可配置数量的玩家“死亡”,游戏将对所有人结束。任何玩家成功完成一个回合都会重置这个死亡计数。
- 真正的硬核死亡: 插件巧妙地拦截致命伤害,防止死亡屏幕出现。相反,它会立即触发死亡惩罚并轮换角色,使游戏流程保持流畅。
- 动态玩家队列: 游戏中途加入的玩家会被添加到轮换队列的末尾。离开的玩家会被移除。如果当前活跃玩家离开,控制权将立即传递给队列中的下一位玩家。
- 锁定旁观者模式: 所有非活跃玩家都被锁定在第一人称旁观视角,观察活跃玩家,确保他们始终参与其中。这种视角在维度切换时也能无缝保持。
- 实时物品栏同步: 旁观者可以随时打开自己的物品栏,以查看活跃玩家物品栏和盔甲的实时视图。
- UI 通知: 持续的动作栏消息让旁观者了解共享角色的状态、当前回合剩余时间以及下一位玩家是谁。活跃玩家仅在最后 10 秒看到倒计时。
- 游戏结束状态: 当世界结束时,所有玩家将被永久置于旁观者模式。此状态会保存到世界数据中,允许通过简单地删除世界文件夹来轻松重置。
- 单人冻结: 如果只有一名玩家在线,接力将暂停。该玩家会与角色的最后已知状态同步,但会被冻结在原地,无法移动或交互,直到另一名玩家加入以恢复接力。
安装
- 下载最新的
HardcoreRelay.jar 文件。
- 将
.jar 文件放入服务器的 /plugins 目录中。
- 重启或重载你的服务器。
- 插件将在
/plugins/HardcoreRelay/ 下生成一个 config.yml 文件。
配置
config.yml 文件允许你自定义接力的核心机制。
# Hardcore Relay Plugin Configuration
# 每个玩家回合的持续时间(秒)。
# 默认值:600(10分钟)
turn-duration: 600
# 在世界结束前允许的连续玩家死亡次数。
# 设置为 1 可获得经典的“首次死亡即结束游戏”的硬核体验。
# 默认值:2
max-consecutive-deaths: 2
# 玩家死亡后跳过的回合数(如果游戏没有结束)。
# 默认值:2
death-penalty-skips: 2
# 如果为 true,当只有一名玩家在线时,游戏将暂停。
# 默认值:true
wait-for-more-players: true
# 等待更多玩家加入时显示在动作栏上的消息。
waiting-message: "&cWaiting for more players to join the relay..."
# --- UI 自定义 ---
# 旁观者的动作栏消息格式。
# 占位符:{health}, {hunger}, {time}, {next_player}
spectator-message: "&cHP: &f{health} &c| Hunger: &f{hunger} &c| Time: &f{time} &c| Next: &f{next_player}"
# 活跃玩家在最后几秒的动作栏消息。
# 占位符:{time}
active-player-countdown-message: "&4! Switching to {next_player} in {time} !"
玩法指南
- 加入服务器: 只要有两名或更多玩家在线,接力就会自动开始。
- 首位玩家: 队列中的第一位玩家接管共享角色的控制权。
- 旁观者: 所有其他玩家会自动进入旁观者模式,锁定在活跃玩家的视角。
- 轮换: 当计时器耗尽时,控制权将传递给队列中的下一位玩家。退出的玩家将进入旁观者模式,而新玩家将以完全相同的位置、相同的物品栏、生命值和动量无缝接管。
- 生存: 共同努力收集资源、击败 Boss,并尽可能长时间地生存下去!
重置游戏
该插件设计为特定于世界的。所有游戏进度(物品栏、位置、游戏结束状态)都存储在世界数据本身中。要开始一个全新的 Hardcore Relay 会话:
- 停止你的服务器。
- 删除世界文件夹(例如
world, world_nether, world_the_end)。
- 重新启动服务器。将生成一个新世界,插件将从头开始。
命令与权限
该插件旨在简化操作,无需设置。没有需要配置的命令和权限。所有功能均为自动运行。
Hardcore Relay Plugin
Overview
Hardcore Relay is a unique and challenging multiplayer gamemode for PaperMC servers. It transforms the classic hardcore experience into a cooperative, high-stakes relay race where a group of players shares control of a single character. With a shared body, inventory, and a limited number of lives, every player's turn matters. One mistake can have consequences for the entire team, making communication and strategy essential for survival.
The plugin is designed to be self-contained and easy to manage. The entire game state, including the shared character's inventory, location, and game-over status, is tied directly to the world data. This means a fresh start is as simple as creating a new world.
Video Example:
Features
- Timed Relay: Control of a single shared character rotates through all online players at a configurable interval.
- Shared Body: Health, hunger, saturation, experience, potion effects, and remaining air are synchronized across all players and persist through rotations. The inventory and Ender Chest are also shared.
- Seamless Transitions: Player momentum, velocity, and even elytra gliding are carried over between turns, ensuring that high-speed movements and falls continue uninterrupted.
- Consecutive Death System: The game ends for everyone if a configurable number of players "die" in succession. A successful turn completion by any player resets this death counter.
- True Hardcore Death: The plugin cleverly intercepts fatal damage, preventing the death screen from ever appearing. Instead, it triggers the death penalty and rotation instantly, keeping the game flowing.
- Dynamic Player Queue: Players who join mid-game are added to the end of the rotation queue. Players who leave are removed. If the active player leaves, control is instantly passed to the next player in line.
- Locked Spectator Mode: All non-active players are locked into a first-person spectator view of the active player, ensuring they are always part of the action. This view persists seamlessly across dimension changes.
- Live Inventory Sync: Spectators can open their inventory at any time to see a live, real-time view of the active player's inventory and armor.
- UI Notifications: A persistent action bar message keeps spectators informed of the shared character's stats, the time remaining in the current turn, and who's up next. The active player sees a countdown only in the last 10 seconds.
- Game Over State: When the world ends, all players are permanently put into spectator mode. This state is saved to the world's data, allowing for an easy reset by simply deleting the world folder.
- Single Player Freeze: If only one player is online, the relay pauses. That player is synced to the last known state of the character but is frozen in place, unable to move or interact, until another player joins to resume the relay.
Installation
- Download the latest
HardcoreRelay.jar file.
- Place the
.jar file into your server's /plugins directory.
- Restart or reload your server.
- The plugin will generate a
config.yml file in /plugins/HardcoreRelay/.
Configuration
The config.yml file allows you to customize the core mechanics of the relay.
# Hardcore Relay Plugin Configuration
# The duration of each player's turn in seconds.
# Default: 600 (10 minutes)
turn-duration: 600
# The number of consecutive player deaths allowed before the world ends.
# Set to 1 for a classic "first death ends the game" hardcore experience.
# Default: 2
max-consecutive-deaths: 2
# The number of turns a player skips after dying (if the game doesn't end).
# Default: 2
death-penalty-skips: 2
# If true, the game will pause if only one player is online.
# Default: true
wait-for-more-players: true
# The message displayed on the action bar when waiting for more players.
waiting-message: "&cWaiting for more players to join the relay..."
# --- UI Customization ---
# Action bar message format for spectators.
# Placeholders: {health}, {hunger}, {time}, {next_player}
spectator-message: "&cHP: &f{health} &c| Hunger: &f{hunger} &c| Time: &f{time} &c| Next: &f{next_player}"
# Action bar message for the active player during the final seconds.
# Placeholder: {time}
active-player-countdown-message: "&4! Switching to {next_player} in {time} !"
How to Play
- Join the Server: As soon as two or more players are online, the relay will automatically begin.
- The First Player: The first player in the queue takes control of the shared character.
- Spectators: All other players are automatically put into spectator mode, locked to the active player's view.
- Rotation: When the timer runs out, control is passed to the next player in the queue. The outgoing player is put into spectator mode, and the new player takes over seamlessly at the exact same location with the same inventory, health, and momentum.
- Survive: Work together to gather resources, defeat bosses, and survive as long as possible!
Resetting the Game
The plugin is designed to be world-specific. All game progress (inventory, location, game-over state) is stored within the world's data itself. To start a completely new Hardcore Relay session:
- Stop your server.
- Delete the world folder(s) (e.g.,
world, world_nether, world_the_end).
- Start the server again. A new world will be generated, and the plugin will start fresh.
Commands & Permissions
This plugin is designed for simplicity and requires no setup. There are no commands and no permissions to configure. All functionality is automatic.
评论 0
登录后参与评分
还没有评论,来抢沙发吧