开始一局游戏
运行:
/begindeathswap
必须至少有两名玩家在线。该命令默认仅服务器管理员可用。开始一局游戏会包含当时所有在线的玩家,之后加入的玩家不会进入该局游戏。
配置中的宽限期会在游戏开始时立即启动。在宽限期内,玩家可以正常移动和游玩;第一次位置交换将在计时器归零时发生。
游戏机制
- 插件会将参与者随机配对。
- 每对玩家同时交换位置。如果存活玩家数量为奇数,则随机选择一名玩家跳过本次交换。
- 每次交换前,屏幕上会出现巨大的
3、2、1 倒计时。
- 老板栏(Boss Bar)显示距离下一次交换的剩余时间,并随着计时减少而改变颜色:
- 绿色: 剩余 40 秒或更多。
- 黄色: 剩余 21-39 秒(最接近橙色的 Paper 内置老板栏颜色)。
- 红色: 剩余 20 秒或更少。
- 第一次交换使用宽限期计时器。后续每次交换均使用交换间隔计时器。
- 如果玩家死亡,他们将被淘汰出局,不再参与后续的交换。
- 每次交换后,如果与其配对的玩家在下次交换前死亡,则该玩家获得一分。这适用于该时间段内的任何死亡,不仅仅是因为到达新位置而导致的死亡。如果玩家存活到下一次交换,之前的配对将不再计分。
- 游戏中途断开的玩家将被淘汰。重新连接无法使其返回游戏。
- 最后存活的玩家获胜。如果所有参与者都被淘汰,则没有胜者。胜利公告中会包含其得分。
- 开始另一局游戏会重置所有参与者、淘汰状态、配对关系和分数。
命令
| 命令 |
描述 |
默认权限 |
/begindeathswap |
开始一局包含当前所有在线玩家的游戏。 |
管理员 (deathswap.begin) |
/reloaddeathswap |
在不中断当前游戏的情况下重载设置文件。 |
管理员 (deathswap.reload) |
如果已有游戏在进行中,/begindeathswap 不会开启新的一局。/reloaddeathswap 会保留当前倒计时的已过时间;新配置的时间长度将应用于当前计时器的剩余部分以及未来的回合。
设置
编辑 plugins/DeathSwap/config.yml:
# 第一次交换之前以及所有后续交换之间的秒数。
grace-seconds: 50
swap-interval-seconds: 60
minimum-players: 2
messages:
prefix: "&8[&cDeathSwap&8] &r"
| 设置项 |
默认值 |
描述 |
grace-seconds |
50 |
开始游戏与第一次交换之间的秒数。 |
swap-interval-seconds |
60 |
后续交换之间的秒数。 |
minimum-players |
2 |
开始游戏所需的最少在线玩家数量。低于 2 的值将被视为 2。 |
messages.prefix |
&8[&cDeathSwap&8] &r |
插件消息使用的前缀。支持使用 & 的 Minecraft 颜色代码。 |
编辑文件后,在游戏中运行 /reloaddeathswap 以应用更改。计时数值必须为正数;低于 1 的值将被视为 1 秒。
Start a match
Run:
/begindeathswap
At least two players must be online. The command is available to server operators by default. Starting a match includes all players online at that time. Players who join later do not enter the match.
The configured grace period begins as soon as the match starts. Players can move and play normally during the grace period; the first location swap happens when the timer reaches zero.
How a match works
- The plugin randomly shuffles the participants into pairs.
- Each pair exchanges locations at the same time. If an odd number of players is alive, one randomly chosen player sits out that swap.
- Before every swap, participants see a large
3, 2, 1 countdown on screen.
- A boss bar displays the time remaining until the next swap and changes color as the timer runs down:
- Green: 40 seconds or more remain.
- Yellow: 21-39 seconds remain (the closest built-in Paper boss-bar color to orange).
- Red: 20 seconds or less remain.
- The first swap uses the grace-period timer. Every later swap uses the swap-interval timer.
- If a player dies, they are eliminated from the match and no longer take part in swaps.
- After each swap, a player earns one point if the player they were paired with dies before the next swap. This applies to any death during that interval, not only deaths directly caused by arriving at the new location. If the player survives until the following swap, the previous pairing no longer awards a point.
- A player who disconnects during a match is eliminated. Rejoining does not return them to the match.
- The last living player wins. If all participants are eliminated, there is no winner. The winner announcement includes their points.
- Starting another match resets all participants, eliminations, pairings, and points.
Commands
| Command |
Description |
Default access |
/begindeathswap |
Start a match with the players currently online. |
Operators (deathswap.begin) |
/reloaddeathswap |
Reload the settings file without stopping the current match. |
Operators (deathswap.reload) |
If a match is active, /begindeathswap does not start another one. /reloaddeathswap preserves the elapsed time in the current countdown; the newly configured duration takes effect for the remainder of that timer and for future rounds.
Settings
Edit plugins/DeathSwap/config.yml:
# Seconds before the first swap and between all later swaps.
grace-seconds: 50
swap-interval-seconds: 60
minimum-players: 2
messages:
prefix: "&8[&cDeathSwap&8] &r"
| Setting |
Default |
Description |
grace-seconds |
50 |
Seconds between starting a match and its first swap. |
swap-interval-seconds |
60 |
Seconds between subsequent swaps. |
minimum-players |
2 |
Minimum number of online players required to start. Values below two are treated as two. |
messages.prefix |
&8[&cDeathSwap&8] &r |
Prefix used for plugin messages. Minecraft color codes using & are supported. |
After editing the file, run /reloaddeathswap to apply the changes in game. Timer values must be positive; values below one are treated as one second.
评论 0
登录后参与评分
还没有评论,来抢沙发吧