CombatTag
战斗登出并不能让你脱离战斗——它只会直接导致你死亡。
工作原理
受到或造成 PvP 伤害后,你将被标记 60 秒。在标记期间断开连接,插件将按原本应有的方式结算战斗:
- 你的物品栏、护甲和副手物品会在你登出的位置掉落
- 你的经验值会以 orbs(经验球)形式掉落,使用原版公式(每级 7 点,上限 100)
- 你将重置为重生后的状态——满血、饱食度恢复、所有效果清除
- 下次加入时,你会空手在出生点重生
默认尊重 keepInventory 游戏规则,因此插件的行为与服务器上的真实死亡一致——或者你可以覆盖此设置以强制生效。
功能
公平标记机制
近战、投射物 以及驯服的宠物 都会触发标记。让你的狼去攻击别人并不是免费的逃跑路线。
四种显示模式,由玩家自行选择
每位玩家都可以选择自己的计时器显示方式:actionbar(操作栏)、title(标题)、bossbar(Boss 条)或 chat(聊天)。没有人会被迫使用他们讨厌的显示方式。
真正持久的偏好设置
每位玩家通过 /combattag receive 控制自己的通知:
| 选项 |
控制内容 |
stoptimer |
其他人是否可以向你发送停止计时器请求 |
combatnotify |
你的战斗计时器显示 |
logalert |
当有人对你战斗登出时的警报 |
sound |
所有插件音效 |
设置更改时立即保存,并在玩家离开时再次保存。重启、崩溃和重载都不会丢失这些设置。
互相停止计时器
战斗以休战结束?输入 /combattag stoptimer <player> 可请求对手提前结束计时器。对方有 15 秒时间输入 /combattag accept 接受请求,随后双方的计时器同时清除。
安全区
每个世界中的长方体区域,完全在游戏中定义。两个独立的开关:阻止其中的 PvP,以及当被标记的玩家走进安全区时立即结束战斗。非常适合出生点、商店和枢纽——无需 WorldGuard。
有帮助的 Tab 补全
安全区坐标会建议你当前的方块位置,因此你可以站在每个角落并按下 Tab 来定义区域。没有权限的玩家看不到管理员命令。
命令
| 命令 |
描述 |
/combattag help |
命令列表 |
/combattag status |
查看你的设置和剩余战斗时间 |
/combattag display <mode> |
设置显示模式:actionbar、title、bossbar 或 chat |
/combattag receive <option> <true|false> |
切换某项通知 |
/combattag reset |
重置你的偏好设置 |
/combattag stoptimer <player> |
请求对手结束计时器 |
/combattag accept |
接受停止计时器请求 |
管理员
| 命令 |
描述 |
/combattag safezone create <x1> <y1> <z1> <x2> <y2> <z2> <name> |
在当前世界创建一个区域 |
/combattag safezone delete <name> |
删除一个区域 |
/combattag safezone edit <name> change-name <newName> |
重命名一个区域 |
/combattag safezone edit <name> change-cords <x1> <y1> <z1> <x2> <y2> <z2> |
移动一个区域 |
/combattag safezone list |
列出所有区域 |
/combattag reload |
重新加载配置、偏好和安全区 |
权限
| 节点 |
默认值 |
授予权限 |
combattag.admin |
op |
安全区和重载命令 |
combattag.bypass |
false |
永远不会被标记战斗——适用于工作人员和活动主持人 |
其他所有内容对所有玩家开放。
配置
# 玩家在受到或造成 PvP 伤害后保持被标记状态的时长(秒)。
combat-seconds: 60
# 另一方接受停止计时器请求所需的时长(秒)。
stoptimer-request-seconds: 15
# 当被标记的玩家走进安全区时立即结束战斗计时器。
safezone-cancels-combat: true
# 当任意一方站在安全区内时取消 PvP 伤害。
safezone-blocks-pvp: true
# --- 被标记玩家断开连接时会发生什么 ---
combatlog-drop-inventory: true
combatlog-drop-experience: true
combatlog-respect-keep-inventory: true
combatlog-teleport-to-spawn: true
combatlog-broadcast: true
请保留 combatlog-teleport-to-spawn 开启。 如果关闭,战斗登出者重新连接后会站在自己掉落的物品上,并可以直接全部拾取回来。
玩家偏好设置在 prefs.yml 中,安全区设置在 safezones.yml 中。两者均由插件管理——仅在服务器停止运行时编辑它们。
兼容性
一个 jar 包涵盖一切。 基于纯 Bukkit API 构建——无 Adventure,无 Paper 特定类——并编译为 Java 17 字节码。
| 平台 |
|
| Bukkit · Spigot · Paper · Purpur · Pufferfish |
✅ 支持 |
| Folia |
❌ 不支持 |
| Forge · NeoForge · Fabric |
❌ 不同平台 |
仅服务端插件。玩家无需安装任何内容。
安装
- 将 jar 文件放入
plugins/ 文件夹
- 重启服务器
- 编辑
plugins/CombatTag/config.yml,然后运行 /combattag reload
CombatTag
Combat logging doesn't get you out of a fight — it just kills you.
How it works
Take or deal PvP damage and you're tagged for 60 seconds. Disconnect while tagged and the
plugin resolves the fight the way it would have ended anyway:
- Your inventory, armour and offhand drop where you logged out
- Your XP drops as an orb, using the vanilla formula (7 per level, capped at 100)
- You're reset to post-respawn state — full health, fed, effects cleared
- Next time you join, you respawn at spawn, empty-handed
The keepInventory gamerule is respected by default, so the plugin behaves like a real
death on your server — or override it if you'd rather it always bite.
Features
Fair tagging
Melee, projectiles and tamed pets all tag. Setting your wolf on someone isn't a free
escape route.
Four display modes, chosen per player
Everyone picks how their own timer looks — actionbar, title, bossbar or chat.
Nobody is stuck with a display they hate.
Preferences that actually persist
Each player controls their own notifications with /combattag receive:
| Option |
Controls |
stoptimer |
Whether others can send you stop-timer requests |
combatnotify |
Your combat timer display |
logalert |
Alerts when someone combat-logs on you |
sound |
All plugin sound effects |
Settings save the moment they change and again when the player leaves. They survive
restarts, crashes and reloads.
Mutual stop-timer
Fight ended in a truce? /combattag stoptimer <player> asks your opponent to end the timer
early. They have 15 seconds to /combattag accept, and both timers clear at once.
Safezones
Cuboid regions per world, defined entirely in-game. Two independent toggles: block PvP
inside them, and end combat the moment a tagged player walks in. Ideal for spawn, shops
and hubs — no WorldGuard needed.
Tab completion that helps
Safezone coordinates suggest your current block position, so you can define a region by
standing at each corner and pressing Tab. Admin commands stay hidden from players without
permission.
Commands
| Command |
Description |
/combattag help |
Command list |
/combattag status |
Your settings and remaining combat time |
/combattag display <mode> |
actionbar, title, bossbar or chat |
/combattag receive <option> <true|false> |
Toggle a notification |
/combattag reset |
Reset your preferences |
/combattag stoptimer <player> |
Ask an opponent to end the timer |
/combattag accept |
Accept a stop-timer request |
Admin
| Command |
Description |
/combattag safezone create <x1> <y1> <z1> <x2> <y2> <z2> <name> |
Create a zone in your current world |
/combattag safezone delete <name> |
Delete a zone |
/combattag safezone edit <name> change-name <newName> |
Rename a zone |
/combattag safezone edit <name> change-cords <x1> <y1> <z1> <x2> <y2> <z2> |
Move a zone |
/combattag safezone list |
List all zones |
/combattag reload |
Reload config, prefs and safezones |
Permissions
| Node |
Default |
Grants |
combattag.admin |
op |
Safezone and reload commands |
combattag.bypass |
false |
Never gets combat tagged — for staff and event hosts |
Everything else is available to all players.
Configuration
# How long (in seconds) a player stays tagged after taking or dealing PvP damage.
combat-seconds: 60
# How long (in seconds) the other player has to accept a stoptimer request.
stoptimer-request-seconds: 15
# Ends the combat timer as soon as a tagged player walks into a safezone.
safezone-cancels-combat: true
# Cancels PvP damage when either player is standing inside a safezone.
safezone-blocks-pvp: true
# --- What happens when a tagged player disconnects ---
combatlog-drop-inventory: true
combatlog-drop-experience: true
combatlog-respect-keep-inventory: true
combatlog-teleport-to-spawn: true
combatlog-broadcast: true
Leave combatlog-teleport-to-spawn on. With it off, a combat-logger reconnects standing
on top of their own dropped items and picks everything straight back up.
Player preferences live in prefs.yml and safezones in safezones.yml. Both are managed by
the plugin — edit them only while the server is stopped.
Compatibility
One jar for everything. Built against the plain Bukkit API — no Adventure, no
Paper-specific classes — and compiled to Java 17 bytecode.
| Platform |
|
| Bukkit · Spigot · Paper · Purpur · Pufferfish |
✅ Supported |
| Folia |
❌ Not supported |
| Forge · NeoForge · Fabric |
❌ Different platform |
Server-side only. Players need nothing installed.
Installation
- Drop the jar into
plugins/
- Restart the server
- Edit
plugins/CombatTag/config.yml, then /combattag reload
评论 0
登录后参与评分
还没有评论,来抢沙发吧