⚔ CombatMe
通过战斗标记、动作栏倒计时和完整的配置控制,防止 PvP 期间的传送滥用。
? 什么是 CombatMe?
CombatMe 是一个轻量级的 Paper 插件,当一名玩家击中另一名玩家时,它会立即给双方打上战斗标记。在标记期间,所有传送命令都会被阻止——战斗中不能再跑 /home,无法通过 /rtp 逃跑,也没有 /tpa 作弊。清晰的动作栏倒计时让玩家了解状态,而不会用标题或聊天垃圾信息 clutter 屏幕。
一旦计时器结束且没有进一步的战斗行为,标记将被移除,玩家可以再次自由传送。
✨ 特性
- ⚔ 即时战斗标记:攻击者和受害者同时被打上标记
- ? 传送命令拦截器——
/home, /warp, /tpa, /rtp, /spawn, /tp 等
- ? 动作栏倒计时——时间流逝时颜色会变化
- ? 红色——剩余时间充足
- ? 黄色——已过一半
- ? 青柠色——即将结束
- ⪱ 白色——战斗结束时闪烁
- ? 私聊警报——攻击者和受害者各自收到独立的标记消息
- ? 动作栏警报——尝试使用被拦截的命令时会闪烁警告
- ? 声音警报——可配置的标记音效和被拦截命令的提示音
- ♻️ 计时器重置——再次击中会将倒计时重置为完整时长
- ? 豁免权限——适用于永远不应被打上标记的管理员
- ? 兼容末影珍珠——末影珍珠投掷不会触发战斗标记
- ? 热重载——
/combatme reload 即时应用配置更改
? 工作原理
玩家 A 击中玩家 B
├─ 双方被战斗标记 10 秒(可配置)
├─ 动作栏::::::::::: (红色)
├─ 玩家 A 聊天:"You hit Steve! You are now in PVP mode for 10 seconds."
└─ 玩家 B 聊天:"You're on PVP mode, cannot use any TP command until 10 seconds."
玩家 B 在标记期间尝试 /home
├─ 命令被取消
└─ 动作栏:"You are in PVP! Cannot teleport for 7 seconds!"
10 秒内未发生战斗
├─ 动作栏::::::::::: (白色闪烁,然后清除)
└─ 聊天:"You are no longer combat-tagged."
⚙️ 配置
每条消息、音效和被拦截的命令都可以在 config.yml 中自定义。
# 玩家保持战斗标记的时间(秒)
combat-duration: 10
messages:
# 发送给攻击者 — 支持 {victim} 和 {time}
attacker-tagged: "&cYou hit &f{victim}&c! You are now in PVP mode for &f{time}&c seconds."
# 发送给受害者 — 支持 {time}
victim-tagged: "&cYou're on PVP mode, cannot use any TP command until &f{time}&c seconds."
# 标记过期时的聊天消息
combat-end-chat: "&a[CombatMe] &7You are no longer combat-tagged."
# 尝试被拦截命令时的动作栏消息 — 支持 {time}
blocked-actionbar: "&cYou are in PVP! Cannot teleport for &f{time}&c seconds!"
# 战斗标记过期时的动作栏闪烁
expire-actionbar: "&fCombat ended!"
sounds:
on-tag: "ENTITY_VILLAGER_HURT" # 留空 "" 以禁用
on-block: "ENTITY_VILLAGER_HURT"
volume: 1.0
pitch: 1.2
# 战斗标记期间要拦截的命令(无需斜杠)
blocked-commands:
- home
- warp
- tpa
- tpaccept
- rtp
- spawn
- tp
- teleport
- back
# 在此添加任何自定义命令
占位符
| 占位符 |
可用位置 |
描述 |
{time} |
attacker-tagged, victim-tagged, blocked-actionbar |
剩余秒数 |
{victim} |
attacker-tagged |
被击中的玩家名称 |
? 权限
| 权限 |
默认值 |
描述 |
combatme.admin |
OP |
使用 /combatme reload |
combatme.bypass |
false |
永远不会被战斗标记 |
? 命令
| 命令 |
权限 |
描述 |
/combatme reload |
combatme.admin |
无需重启服务器即可重载 config.yml |
? 依赖要求
|
|
| 服务端软件 |
Paper 1.21.1+ |
| Java 版本 |
Java 21+ |
⚠️ 此插件不兼容 Spigot 或 CraftBukkit。必须使用 Paper。
❓ 常见问题
它与 EssentialsX 兼容吗?
是的。EssentialsX 的命令如 /home, /warp, /tpa 和 /back 都可以通过配置中的 blocked-commands 进行拦截。
它与 CMI / 其他家插件兼容吗?
是的,只要将相应命令添加到配置的 blocked-commands 中即可。
末影珍珠算作战斗行为吗?
不算。出于设计原因,末影珍珠投掷不会触发战斗标记。
我可以改变标记持续时间吗?
可以。修改 config.yml 中的 combat-duration 并运行 /combatme reload。
? Bug 与支持
发现 Bug 或有建议?
? 邮箱: herzfnf@gmail.com
请包含以下信息:
- 你的服务端版本(例如 Paper 1.21.1 build 123)
- 你的 Java 版本(
java -version)
- 问题描述或来自控制台的完整错误日志
由 Herza 用心制作 ❤
⚔ CombatMe
Prevent teleport abuse during PvP with combat tagging, action bar countdown, and full config control.
? What is CombatMe?
CombatMe is a lightweight Paper plugin that tags both players the moment one hits the other. While tagged, every teleport command is blocked — no more running /home mid-fight, no /rtp to escape, no /tpa cheese. A clean action bar countdown keeps players informed without cluttering the screen with titles or chat spam.
Once the timer runs out with no further combat, the tag is lifted and players are free to teleport again.
✨ Features
- ⚔ Instant combat tagging on both attacker and victim
- ? Teleport command blocker —
/home, /warp, /tpa, /rtp, /spawn, /tp, and more
- ? Action bar countdown — color shifts as time runs out
- ? Red — lots of time left
- ? Yellow — halfway through
- ? Lime — almost done
- ⚪ White — flash when combat ends
- ? Private chat alerts — attacker and victim each get their own message on tag
- ? Action bar alert — flashes a warning when a blocked command is attempted
- ? Sound alerts — configurable sounds on tag and on blocked commands
- ♻️ Timer reset — hitting again resets the countdown to full duration
- ? Bypass permission — for staff who should never be tagged
- ? Ender pearl friendly — ender pearls do not trigger combat tagging
- ? Live reload —
/combatme reload applies config changes instantly
? How It Works
Player A hits Player B
├─ Both are combat-tagged for 10 seconds (configurable)
├─ Action bar: :::::::::::: (red)
├─ Player A chat: "You hit Steve! You are now in PVP mode for 10 seconds."
└─ Player B chat: "You're on PVP mode, cannot use any TP command until 10 seconds."
Player B tries /home while tagged
├─ Command is cancelled
└─ Action bar: "You are in PVP! Cannot teleport for 7 seconds!"
10 seconds pass without combat
├─ Action bar: :::::::::::: (white flash, then clears)
└─ Chat: "You are no longer combat-tagged."
⚙️ Configuration
Every message, sound, and blocked command can be customized in config.yml.
# How long (in seconds) a player stays combat-tagged
combat-duration: 10
messages:
# Sent to the attacker — supports {victim} and {time}
attacker-tagged: "&cYou hit &f{victim}&c! You are now in PVP mode for &f{time}&c seconds."
# Sent to the victim — supports {time}
victim-tagged: "&cYou're on PVP mode, cannot use any TP command until &f{time}&c seconds."
# Chat message when the tag expires
combat-end-chat: "&a[CombatMe] &7You are no longer combat-tagged."
# Action bar message when a blocked command is attempted — supports {time}
blocked-actionbar: "&cYou are in PVP! Cannot teleport for &f{time}&c seconds!"
# Action bar flash when combat tag expires
expire-actionbar: "&fCombat ended!"
sounds:
on-tag: "ENTITY_VILLAGER_HURT" # leave "" to disable
on-block: "ENTITY_VILLAGER_HURT"
volume: 1.0
pitch: 1.2
# Commands to block while combat-tagged (no slash needed)
blocked-commands:
- home
- warp
- tpa
- tpaccept
- rtp
- spawn
- tp
- teleport
- back
# add any custom commands here
Placeholders
| Placeholder |
Available in |
Description |
{time} |
attacker-tagged, victim-tagged, blocked-actionbar |
Remaining seconds |
{victim} |
attacker-tagged |
Name of the player who was hit |
? Permissions
| Permission |
Default |
Description |
combatme.admin |
OP |
Use /combatme reload |
combatme.bypass |
false |
Never gets combat-tagged |
? Commands
| Command |
Permission |
Description |
/combatme reload |
combatme.admin |
Reload config.yml without restarting the server |
? Requirements
|
|
| Server software |
Paper 1.21.1+ |
| Java version |
Java 21+ |
⚠️ This plugin will not work on Spigot or CraftBukkit. Paper is required.
❓ FAQ
Does this work with EssentialsX?
Yes. EssentialsX commands like /home, /warp, /tpa, and /back are all blockable via blocked-commands in config.
Does this work with CMI / other home plugins?
Yes, as long as you add the command to blocked-commands in config.
Do ender pearls count as combat?
No. Ender pearl throws do not trigger combat tagging by design.
Can I change how long the tag lasts?
Yes. Change combat-duration in config.yml and run /combatme reload.
? Bugs & Support
Found a bug or have a suggestion?
? Email: herzfnf@gmail.com
Please include:
- Your server version (e.g. Paper 1.21.1 build 123)
- Your Java version (
java -version)
- A description of the issue or the full error from your console
Made with ❤ by Herza
评论 0
登录后参与评分
还没有评论,来抢沙发吧