DeathSwap
最后存活者小游戏,玩家之间会定期交换位置。
» 关于
DeathSwap 是一款生存小游戏,玩家需竞争成为最后的幸存者。
玩家加入大厅后,在游戏开始时会被传送到一个全新的临时世界。在固定间隔内,他们的位置会与随机存活的对手交换。玩家需要坚持到最后成为唯一的幸存者。
» 对局
在对局开始前,玩家加入匹配队列并等待倒计时。玩家可以在任何地方排队,无需提前传送。
对局开始后:
- 玩家被传送到一个临时的对局世界
- 为每位玩家分配可配置的命数
- 根据配置启用 PvP 和死亡追踪
- 玩家分布在配置的生成半径周围
在对局期间,玩家会定期与随机存活的对手交换位置。每次交换前都会显示警告倒计时。
失去所有命数的玩家将被淘汰,并可观战剩余的玩家。
当仅剩一名玩家或达到配置的对局时间上限时,对局结束。
» 世界
DeathSwap 支持为每场对局使用临时世界。
世界可以是:
- 为每场对局创建的全新世界
- 从可重复使用的世界池中选取
Nether(下界)和 End(末地)维度可选择性地为每场对局启用。
每个对局世界支持可配置的:
- 生成半径
- 世界边界
- Nether 和 End 维度
多场对局可同时运行,每场对局都在自己的世界中隔离进行。
» 指令
| 指令 | 别名 | 描述 | 权限 |
|---|---|---|---|
/deathswap join |
/ds join |
加入对局队列 | — |
/deathswap leave |
/ds leave |
离开队列或对局 | — |
/deathswap start |
/ds start |
强制开始游戏 | deathswap.start |
/deathswap stop |
/ds stop |
停止游戏 | deathswap.stop |
/deathswap setlobby |
/ds setlobby |
设置对局结束后的返回位置 | deathswap.setlobby |
/deathswap reload |
/ds reload |
重新加载配置和消息 | deathswap.reload |
» Tab 列表隐藏
当启用 hide.match-players-in-tab 且安装了 PacketEvents 时,不在对局中的玩家无法在 Tab 列表中看到对局参与者。
每场对局仅显示其自身的参与者,而大厅玩家则与活跃对局分离。
对局可见性还会限制聊天、死亡和进度提示消息在并发对局之间的范围。
注意: 进度提示消息的隔离需要 Paper,在 Spigot 上不可用。
» 占位符
需要 PlaceholderAPI。
该扩展在 deathswap 和 ds 下均可用。
| 占位符 | 描述 |
|---|---|
%deathswap_state% |
玩家当前状态:none(无)、lobby(大厅)、match(对局)或 spectator(观战) |
%deathswap_deaths% |
当前死亡次数(对局外为 0) |
%deathswap_deaths_left% |
淘汰前剩余的命数 |
%deathswap_max_deaths% |
配置的最大命数 |
%deathswap_players_in_lobby% |
当前在大厅等待的玩家数量 |
%deathswap_min_players% |
开始所需的最小玩家数 |
%deathswap_swap_interval% |
配置的交换间隔(秒) |
%deathswap_next_swap% |
距离下次交换的秒数 |
» 要求
- Java 25
- Spigot 或 Paper
- Minecraft
1.21.11,26.1或26.2 - 可选:PacketEvents 用于隐藏对局玩家的 Tab 列表
- 可选:PlaceholderAPI 用于占位符
» 构建
gradlew build
享受 DeathSwap!
DeathSwap
Last-player-standing minigame with timed position swaps between alive players.
» About
DeathSwap is a survival minigame where players compete to be the last one standing.
Players join a lobby and are sent into a fresh temporary world when the match starts. At regular intervals, their positions are swapped with random alive opponents. Players must survive until they are the last one standing.
» Matches
Before a match starts, players join the matchmaking queue and wait for the countdown. Players can queue from anywhere without being teleported beforehand.
When the match starts:
- Players are teleported to a temporary match world
- A configurable number of lives is assigned to each player
- PvP and death tracking are enabled according to the configuration
- Players are distributed around the configured spawn radius
During the match, players are periodically swapped with random alive opponents. A warning countdown is displayed before each swap.
Players who lose all of their lives are eliminated and can spectate the remaining players.
The match ends when only one player remains or when the configured match time expires.
» Worlds
DeathSwap supports temporary worlds for each match.
Worlds can either be:
- Created as a brand-new world for every match
- Taken from a reusable world pool
Nether and End dimensions can optionally be enabled for each match.
Each match world supports configurable:
- Spawn radius
- World border
- Nether and End dimensions
Multiple matches can run simultaneously, with each match isolated in its own world.
» Commands
| Command | Aliases | Description | Permission |
|---|---|---|---|
/deathswap join |
/ds join |
Join the match queue | — |
/deathswap leave |
/ds leave |
Leave the queue or match | — |
/deathswap start |
/ds start |
Force-start the game | deathswap.start |
/deathswap stop |
/ds stop |
Stop the game | deathswap.stop |
/deathswap setlobby |
/ds setlobby |
Set the post-match return location | deathswap.setlobby |
/deathswap reload |
/ds reload |
Reload config and messages | deathswap.reload |
» Tab List Hiding
When hide.match-players-in-tab is enabled and PacketEvents is installed, players outside a match cannot see its participants in the tab list.
Each match only displays its own participants, while lobby players remain separate from active matches.
Match visibility also scopes chat, death, and advancement messages between concurrent matches.
Note: Advancement message isolation requires Paper and is unavailable on Spigot.
» Placeholders
Requires PlaceholderAPI.
The expansion is available under both deathswap and ds.
| Placeholder | Description |
|---|---|
%deathswap_state% |
Player's current state: none, lobby, match, or spectator |
%deathswap_deaths% |
Current death count (0 outside a match) |
%deathswap_deaths_left% |
Deaths remaining before elimination |
%deathswap_max_deaths% |
Configured maximum deaths |
%deathswap_players_in_lobby% |
Players currently waiting in the lobby |
%deathswap_min_players% |
Minimum players required to start |
%deathswap_swap_interval% |
Configured swap interval in seconds |
%deathswap_next_swap% |
Seconds until the next swap |
» Requirements
- Java 25
- Spigot or Paper
- Minecraft
1.21.11,26.1, or26.2 - Optional: PacketEvents for match player tab-list hiding
- Optional: PlaceholderAPI for placeholders
» Build
gradlew build
Enjoy DeathSwap!
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DeathSwap
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
? 改进与重构
-
模块化子命令系统 (
/deathswap,/ds)- 重组为独立的子命令:
/ds join、/ds leave、/ds start、/ds stop、/ds reload以及嵌套的/ds set lobby。 - 在所有参数中添加了带输入前缀过滤的动态 Tab 补全功能。
- 移除了
settings.yml中过时的命令样板代码和配置项。
- 重组为独立的子命令:
-
玩家状态管理 (
PlayerStateManager)- 在游戏期间集中保存玩家的物品栏、生命值、饥饿值、游戏模式和药水效果。
- 确保在意外结束比赛或玩家断开连接时能够安全恢复(
restoreAll())。
-
动态权限与生命周期
- 将所有权限(
deathswap.command.*)迁移至动态运行时注册,移除了plugin.yml中的静态声明。 - 静默了冗长的启动和关闭控制台日志输出。
- 将所有权限(
-
消息与格式化 (
MessageUtil)- 添加了
<prefix>占位符支持,同时保留{prefix}和%prefix%。 - 改进了配置重载的错误处理,提供格式化的游戏内反馈。
- 添加了
修复
- 修复了对局结束后死亡画面卡死的问题——阵亡玩家现在会自动重生,并且对局清理会延迟到下一个刻进行。
- 修复了异步聊天处理中的线程安全竞态条件(不再出现
ConcurrentModificationException)。 - 修复了使用传送门时,下界和末地传送被误判为退出对局的问题。
- 修复了对局开始时玩家出生点分布问题:玩家现在会分散在出生半径内,而不是全部出现在同一个点上。
/ds leave命令现在能正确恢复玩家的物品栏、生命值、经验值和效果。- 修复了存活玩家计数逻辑:正在等待重生的淘汰玩家不再被计入。
- 修复了投射物伤害相关的
pvp-enabled配置处理问题。 - 大厅开始倒计时现在不会因为仍有足够数量的玩家而重置。
- 确保在交换过程中所有存活玩家的位置都被真正打乱(没有玩家会保留原位)。
- 修复了世界删除逻辑:实现了区域/实体/POI 的选择性清理,在删除前验证卸载状态,修正了区块预生成以及重载时的池子收缩问题。
- 世界设置(
name-prefix、generate-dimensions、generate-on-start、池子扩展)现在在/ds reload后立即生效。 - 传送目标现在会根据当前对局的维度进行验证,而不是全局世界池。
- 重试任务现在能在停止或创建对局时正确取消,并强制执行
min-players-to-start配置。
更改
- 交换操作现在影响所有存活玩家;
PlayerSwapEvent暴露完整的玩家列表。 - 大厅现在作为一个虚拟匹配队列运行,无需强制更改游戏模式。
- 从 README 的支持平台列表中移除了 Folia。
- 简化了
PlayerSwapEvent,并移除了onEnable中冗余的配置处理逻辑。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个功能丰富、完全动画化的箱子插件,适用于 Paper 1.21.x,支持 IA、Vault、PlaceholderAPI 和 Citizens
插件
Minecraft 最佳捉迷藏与方块追逐插件
插件
在 Minecraft 中重新体验经典桌游《Thiercelieux 的狼人》的乐趣吧!
插件
每个生物都是一颗行走的炸弹。靠近时,它会开始嘶嘶作响。可调整爆炸范围、引信时间以及哪些生物不受影响。支持 Paper 和 Fabric,并可选速通模式。
插件
一款 Minecraft 的团队迷你游戏工具。
评论 0
登录后参与评分
还没有评论,来抢沙发吧