Death Swap Plus
适用于 Minecraft 1.21 的 DeathSwap 小游戏插件。
在 DeathSwap 中,所有人以生存模式进行游戏,插件会定期交换玩家的位置。你的目标是让其他玩家死亡(陷阱、熔岩、摔落伤害、怪物等)。
如果你死了,你将变成观察者。
最后存活的玩家获胜。
快速开始
- 将插件 jar 文件放入服务器的
plugins/ 文件夹中。
- 启动服务器一次(这将创建
plugins/DeathSwap/config.yml)。
- (可选)使用
/dssettings 配置插件。
- 开始游戏:
- 准备就绪后开始(推荐): 所有人运行
/dsready,然后某人运行 /dsready start
- 管理员开始:
/dsstart
游戏机制
- 当游戏开始时,所有在线玩家将被设置为 SURVIVAL(生存) 并加入比赛。
- 玩家获得可选的初始物品:
GiveFood=true → 20 个熟猪肉排
GiveWaterBucket=true → 1 桶水
- 插件会在 TAB 列表(记分板目标
showhealth)中显示生命值。
- 交换发生在
MinTimer 和 MaxTimer(刻)之间的随机延迟之后。
- 在交换前 10 秒(200 刻),总会显示一个大的标题警告:
“SWAP INCOMING!”
- 在比赛期间,被淘汰的玩家将被设置为 SPECTATOR(观察者)。
- 当只剩 一名 玩家时,游戏自动结束。
命令
/dsready [get|start]
仅限玩家。用于开始前准备就绪。
仅在 没有活跃游戏 时有效。
| 命令 |
描述 |
/dsready |
切换你的就绪状态,并广播 [ready/online]。 |
/dsready get |
显示你当前是否标记为就绪。 |
/dsready start |
仅当所有在线玩家都已就绪时 开始游戏。 |
/dsstart
需要权限:ds.start
| 命令 |
描述 |
/dsstart |
强制开始新游戏(仅在没有活跃游戏时)。 |
/dsstart true |
以 开发模式 开始游戏(测试模式)。 |
开发模式说明:
- 允许只有 1 名 玩家在线时开始游戏。
- 向 OP(管理员)发送额外的调试信息(传送顺序 / 配对列表)。
- 启用开发模式时,不会写入统计数据。
/dsstop
需要权限:ds.stop
| 命令 |
描述 |
/dsstop |
强制停止当前游戏(仅在有活跃游戏时)。 |
/dssettings <set|get|help> ...
需要权限:ds.settings
| 命令 |
描述 |
/dssettings get |
在一行中打印所有设置及其当前值。 |
/dssettings help |
显示帮助页面。 |
/dssettings set <Setting> <Value> |
更改特定设置。 |
时间值单位为刻
示例
/dssettings set MinTimer 2400(2 分钟)
/dssettings set MaxTimer 6000(5 分钟)
/dssettings set Warning 200(10 秒)
/dssettings set Safe 60(3 秒无敌时间)
/dssettings set TeleportMode pairs
/dstp <player>
仅限玩家。观察者工具。
| 命令 |
描述 |
/dstp <player> |
将你传送到目标 存活 玩家处。 |
说明
- 仅在游戏活跃时有效。
- 你必须处于观察模式(不在存活玩家列表中)。
- Tab 补全建议会列出存活玩家。
/dskill
仅限玩家。
| 命令 |
描述 |
/dskill |
在游戏中立即杀死自己(将生命值设为 0)。 |
如果你想放弃比赛并转为观察者时使用。
/dsstats [player]
仅限玩家。
| 命令 |
描述 |
/dsstats |
显示你自己的统计数据。 |
/dsstats <player> |
显示另一名玩家的统计数据(支持离线数据)。 |
跟踪的统计数据
- 游戏场次
- 胜利次数
- 交换次数
- 死亡次数
- 断开连接次数
- 游戏时长
/dsinfo
| 命令 |
描述 |
/dsinfo |
显示插件信息(创作者、灵感来源、版本)。 |
设置参考
可以通过 /dssettings set ... 或直接修改
plugins/DeathSwap/config.yml 来更改设置。
交换计时
| 设置 |
描述 |
MinTimer |
下次交换前的最短时间(刻)。 |
MaxTimer |
下次交换前的最长时间(刻)。 |
Warning |
当距离交换的时间 ≤ 此值时,动作栏倒计时。 |
Safe |
交换后及游戏开始后的抗性持续时间。 |
TeleportMode
控制如何交换玩家位置。
| 模式 |
描述 |
random |
每次交换时,每个玩家被传送到另一个随机玩家处。如果在 500 次尝试后找不到有效的映射,则回退到环形模式。 |
circle |
玩家按循环顺序交换,该顺序在游戏开始时随机化。 |
random_circle |
与 circle 相同,但在每次交换后重新洗牌。 |
fixed_circle |
循环顺序固定,永不洗牌。 |
pairs |
玩家成对交换;奇数人数会形成一个 3 人轮换。配对在游戏开始时生成。 |
世界 / 起始选项
| 设置 |
描述 |
World |
用于生成和传送的世界。如果无效则回退。 |
RandomSpawn |
在游戏开始时随机化玩家的出生位置。 |
GiveFood |
如果启用,给予初始食物。 |
GiveWaterBucket |
如果启用,给予一桶水。 |
交换清理
| 设置 |
描述 |
KillPearls |
在交换瞬间移除所有的末影珍珠。 |
SendChunks |
作为设置存在,但区块无论怎样都已预加载。 |
语言
| 设置 |
描述 |
Language |
控制广播消息和设置文本(en, hu, de, es)。 |
备注与技巧
- 在游戏运行时加入,你会进入 SPECTATOR(观察者) 模式。
- 死亡玩家可以使用
/dstp <player> 观察存活玩家。
- 玩家统计数据存储在
plugins/DeathSwap/PlayerDatabase/<uuid>.yml。
Death Swap Plus
A DeathSwap minigame plugin for Minecraft 1.21.
In DeathSwap, everyone plays in survival and the plugin will periodically swap players’ positions. Your goal is to make other players die (traps, lava, fall damage, mobs, etc.).
If you die, you become a spectator.
Last player alive wins.
Quick Start
- Put the plugin jar into your server’s
plugins/ folder.
- Start the server once (this creates
plugins/DeathSwap/config.yml).
- (Optional) Configure the plugin with
/dssettings.
- Start a game:
- Ready-up start (recommended): everyone runs
/dsready, then someone runs /dsready start
- Admin start:
/dsstart
How The Game Works
- When a game starts, all online players are put into SURVIVAL and added to the match.
- Players get optional starting items:
GiveFood=true → 20 cooked porkchops
GiveWaterBucket=true → 1 water bucket
- The plugin shows health in the TAB list (scoreboard objective
showhealth).
- Swaps happen after a random delay between
MinTimer and MaxTimer (ticks).
- A big title warning always appears 10 seconds before a swap (200 ticks):
“SWAP INCOMING!”
- During the match, eliminated players are set to SPECTATOR.
- The game ends automatically when only one player remains.
Commands
/dsready [get|start]
Player-only. Used to ready-up before starting.
Only works when no game is active.
| Command |
Description |
/dsready |
Toggles your ready status and broadcasts [ready/online]. |
/dsready get |
Shows whether you are currently marked as ready. |
/dsready start |
Starts the game only if everyone online is ready. |
/dsstart
Requires permission: ds.start
| Command |
Description |
/dsstart |
Force-starts a new game (only if no game is active). |
/dsstart true |
Starts the game in dev mode (testing mode). |
Dev mode notes:
- Allows starting with only 1 player online.
- Sends extra debug info to OPs (teleport order / pair listings).
- Stats are not written while dev mode is enabled.
/dsstop
Requires permission: ds.stop
| Command |
Description |
/dsstop |
Force-stops the current game (only if a game is active). |
/dssettings <set|get|help> ...
Requires permission: ds.settings
| Command |
Description |
/dssettings get |
Prints all settings and their current values in one line. |
/dssettings help |
Shows help pages. |
/dssettings set <Setting> <Value> |
Changes a specific setting. |
Time values are in ticks
20 ticks = 1 second
1200 ticks = 1 minute
Examples
/dssettings set MinTimer 2400 (2 minutes)
/dssettings set MaxTimer 6000 (5 minutes)
/dssettings set Warning 200 (10 seconds)
/dssettings set Safe 60 (3 seconds of invincibility)
/dssettings set TeleportMode pairs
/dstp <player>
Player-only. Spectator utility.
| Command |
Description |
/dstp <player> |
Teleports you to a target alive player. |
Notes
- Works only if a game is active.
- You must be spectating (not in the alive player list).
- Tab completion suggests alive players.
/dskill
Player-only.
| Command |
Description |
/dskill |
Instantly kills you during a game (sets health to 0). |
Useful if you want to forfeit and spectate.
/dsstats [player]
Player-only.
| Command |
Description |
/dsstats |
Shows your own stats. |
/dsstats <player> |
Shows stats for another player (offline data supported). |
Tracked stats
- Games
- Wins
- Swaps
- Deaths
- Disconnected
- Time played
/dsinfo
| Command |
Description |
/dsinfo |
Shows plugin info (creator, inspiration, version). |
Settings Reference
Settings can be changed via /dssettings set ... or directly in
plugins/DeathSwap/config.yml.
Swap Timing
| Setting |
Description |
MinTimer |
Minimum time before the next swap (ticks). |
MaxTimer |
Maximum time before the next swap (ticks). |
Warning |
Action-bar countdown when time until swap ≤ this value. |
Safe |
Resistance duration after swaps and at game start. |
TeleportMode
Controls how player locations are swapped.
| Mode |
Description |
random |
Each player is teleported to a random other player every swap. Falls back to circle if no valid mapping is found after 500 tries. |
circle |
Players swap in a circular order randomized at game start. |
random_circle |
Same as circle, but reshuffles after each swap. |
fixed_circle |
Circle order is fixed and never shuffled. |
pairs |
Players swap in pairs; odd counts create one 3-player rotation. Pairings are generated at game start. |
World / Start Options
| Setting |
Description |
World |
World used for spawning and teleporting. Falls back if invalid. |
RandomSpawn |
Randomizes player spawn positions at game start. |
GiveFood |
Gives starting food if enabled. |
GiveWaterBucket |
Gives a water bucket if enabled. |
Swap Cleanup
| Setting |
Description |
KillPearls |
Removes all ender pearls at the moment of a swap. |
SendChunks |
Present as a setting, but chunks are already preloaded regardless. |
Language
| Setting |
Description |
Language |
Controls broadcast messages and settings text (en, hu, de, es). |
Notes & Tips
- Joining while a game is running puts you into SPECTATOR.
- Dead players can spectate alive players using
/dstp <player>.
- Player stats are stored in
plugins/DeathSwap/PlayerDatabase/<uuid>.yml.
评论 0
登录后参与评分
还没有评论,来抢沙发吧