CombatTimer
CombatTimer 是一款轻量且可配置的 Minecraft 插件,旨在阻止玩家通过登出战斗来逃避惩罚。
它专为生存服、多人联机服(SMP)、阵营服和 PvP 服务器设计,让战斗更加公平,无需工作人员手动频繁处罚逃战者。
CombatTimer 可以直接击杀或封禁逃战者,也可以将其替换为可拾取战利品的登出村民,即使对方断开连接,战斗依然继续。
主要功能
战斗计时器
CombatTimer 会在玩家进入战斗时对其打上标记。
你可以自定义触发战斗的条件:
MOB
PLAYER
BOTH
这使得 CombatTimer 可用于以下场景:
- 仅限 PvP 的战斗标记
- 仅怪物战斗标记
- 完整生存模式的战斗标记
- 阵营服或 SMP 服的防逃战保护
战斗持续时间完全可配置。
屏幕内战斗计时器
玩家可以清楚地看到自己是否仍处于战斗中。
可用的显示模式:
| 模式 |
描述 |
ACTIONBAR |
在快捷栏上方显示计时器 |
BOSSBAR |
以 Boss 血条形式显示计时器 |
BOTH |
同时显示动作栏和 Boss 血条 |
NONE |
隐藏计时器显示 |
Boss 血条的颜色可配置。
登出村民
CombatTimer 的主要功能之一是可选的登出村民系统。
当玩家在战斗期间登出时,他们可以在登出位置被一个村民替代。
该村民代表已登出的玩家。
其他玩家可以:
- 找到登出村民
- 点击它
- 打开逃战者存储的背包界面
- 直接从 GUI 中拾取物品
- 击杀村民,将逃战者视为已被击杀
如果逃战者在村民仍存在时重新加入服务器:
- 村民会被移除
- 剩余的背包物品会恢复
- 盔甲会恢复
- 副手物品会恢复
- 玩家将在村民所在位置重生
登出村民的数据保存在数据库中,并在服务器重启后恢复,因此逃战者无法通过等待重启来逃避后果。
战斗登出惩罚
如果禁用登出村民,CombatTimer 仍可直接惩罚逃战者。
支持的惩罚选项:
临时封禁支持灵活的时间设置:
30m
1h
1h 30m
2d
1w
如果启用了登出村民,当村民被击杀时,仍可应用配置的惩罚。
自定义封禁系统
CombatTimer 使用基于 SQLite 的独立封禁系统,而不是依赖 Minecraft 默认的封禁列表。
这提供了更整洁的封禁管理界面和对逃战惩罚的更好控制。
封禁数据本地存储在:
plugins/CombatTimer/combattimer.db
工作人员可以通过插件命令查看和解除 CombatTimer 的封禁。
完全可配置
CombatTimer 使用简单的 JSON 配置文件。
示例配置:
{
"trigger_when": "BOTH",
"timer_seconds": 30,
"timer_display": "ACTIONBAR",
"bossbar_color": "GREEN",
"kill_on_logout": true,
"ban_on_logout": false,
"ban_type": "PERMANENT",
"tempban_duration": "1d",
"logout_villagers_enabled": true
}
自定义消息
所有插件消息均可编辑。
你可以自定义以下内容:
- 战斗计时器文本
- 动作栏文本
- Boss 血条文本
- 登出广播消息
- 登出村民名称
- 村民背包标题
- 封禁界面消息
- 命令反馈消息
- 更新通知
文件结构:
plugins/CombatTimer/
config.json
combattimer.db
translations/
messages.json
豁免权限
受信任的玩家或工作人员组可以绕过战斗标记。
combattimer.bypass
热重载支持
无需重启服务器即可重载配置文件和翻译文件。
/combattimer reload
缺失的文件会自动重新创建。
命令
| 命令 |
描述 |
/combattimer help |
显示插件命令列表 |
/combattimer reload |
重载配置和消息文件 |
/combattimer unban <player> |
解除某玩家的 CombatTimer 封禁 |
/combattimer banlist [page] |
列出当前活跃的 CombatTimer 封禁记录 |
别名:
/ctimer
权限
| 权限 |
描述 |
默认值 |
combattimer.help |
允许使用 /combattimer help |
true |
combattimer.reload |
允许使用 /combattimer reload |
op |
combattimer.unban |
允许解除玩家封禁 |
op |
combattimer.banlist |
允许查看 CombatTimer 封禁记录 |
op |
combattimer.bypass |
绕过战斗计时器标记 |
false |
combattimer.update.notify |
允许接收更新通知 |
op |
为什么使用 CombatTimer?
逃战行为可能会破坏战斗体验。
常见问题包括:
- 玩家在死亡前断开连接
- 玩家通过登出来保存战利品
- PvP 战斗结果不公平
- 逃战者逃避应有的后果
- 工作人员需要手动处理举报
- 玩家利用重启机制逃避战斗
CombatTimer 通过保持战斗的公平性、可见性和可配置性来解决这些问题。
你可以使用简单的计时器、直接惩罚逃战者,或者启用登出村民系统,打造更具互动性和利于拾取战利品的玩法。
适用场景
PvP 服务器
SMP 服务器
生存服务器
阵营服务器
硬核服务器
活动服务器
Lifesteal(生命窃取)风格服务器
兼容性
- Minecraft 1.21+
- Spigot / Paper
- 轻量级,对性能影响极小
设计理念
CombatTimer 的设计目标是:
- 配置简单
- 对玩家公平
- 对工作人员有用
- 有效防止逃战
由你决定战斗何时开始、持续多久,以及有人登出时会发生什么。
支持
如果你遇到问题或有功能建议,欢迎在 Discord 服务器中提交工单。
保持战斗公平,杜绝登出滥用,让每一场战斗都至关重要。
CombatTimer
CombatTimer is a lightweight and configurable Minecraft plugin that stops players from escaping combat by logging out.
It is built for survival, SMP, factions, and PvP servers that want fair fights without constantly needing staff to punish combat loggers manually.
CombatTimer can simply kill or ban combat loggers, or it can replace them with a lootable logout villager so the fight continues even after they disconnect.
Key Features
Combat Timer
CombatTimer tags players when they enter combat.
You decide what should trigger combat:
MOB
PLAYER
BOTH
This allows you to use CombatTimer for:
- PvP-only combat tagging
- mob combat tagging
- full survival combat tagging
- faction or SMP combat protection
The combat duration is fully configurable.
On-Screen Combat Timer
Players can clearly see when they are still in combat.
Available display modes:
| Mode |
Description |
ACTIONBAR |
Shows the timer above the hotbar |
BOSSBAR |
Shows the timer as a bossbar |
BOTH |
Shows both actionbar and bossbar |
NONE |
Hides the timer display |
Bossbar color is configurable.
Logout Villagers
One of CombatTimer’s main features is the optional logout villager system.
When a player logs out during combat, they can be replaced by a villager at their logout location.
That villager represents the logged-out player.
Other players can:
- find the logout villager
- click it
- open the combat logger’s stored inventory
- loot items directly from the GUI
- kill the villager to treat the combat logger as killed
If the combat logger rejoins while their villager still exists:
- the villager is removed
- the remaining inventory is restored
- armor is restored
- offhand item is restored
- the player returns at the villager location
Logout villagers are saved in the database and restored after server restarts, so combat loggers cannot escape by waiting for a reboot.
Combat Logout Punishments
If logout villagers are disabled, CombatTimer can still punish combat loggers directly.
Supported punishment options:
- kill on logout
- permanent combat-log ban
- temporary combat-log ban
Temporary bans support flexible durations:
30m
1h
1h 30m
2d
1w
If logout villagers are enabled, the configured punishment can still be applied when the villager is killed.
Custom Ban System
CombatTimer uses its own SQLite-backed ban system instead of relying on Minecraft’s default ban list.
This allows cleaner ban screens and better control over combat-log punishments.
Bans are stored locally in:
plugins/CombatTimer/combattimer.db
Staff can view and remove CombatTimer bans with plugin commands.
Fully Configurable
CombatTimer uses simple JSON configuration.
Example config:
{
"trigger_when": "BOTH",
"timer_seconds": 30,
"timer_display": "ACTIONBAR",
"bossbar_color": "GREEN",
"kill_on_logout": true,
"ban_on_logout": false,
"ban_type": "PERMANENT",
"tempban_duration": "1d",
"logout_villagers_enabled": true
}
Customizable Messages
All plugin messages can be edited.
You can customize:
- combat timer text
- actionbar text
- bossbar text
- logout broadcasts
- logout villager names
- villager inventory title
- ban screen message
- command messages
- update notifications
File structure:
plugins/CombatTimer/
config.json
combattimer.db
translations/
messages.json
Bypass Permission
Trusted players or staff groups can bypass combat tagging.
combattimer.bypass
Hot Reload Support
Reload config and translation files without restarting the server.
/combattimer reload
Missing files are recreated automatically.
Commands
| Command |
Description |
/combattimer help |
Displays plugin commands |
/combattimer reload |
Reloads config and messages |
/combattimer unban <player> |
Removes a CombatTimer ban |
/combattimer banlist [page] |
Lists active CombatTimer bans |
Alias:
/ctimer
Permissions
| Permission |
Description |
Default |
combattimer.help |
Allows /combattimer help |
true |
combattimer.reload |
Allows /combattimer reload |
op |
combattimer.unban |
Allows unbanning players |
op |
combattimer.banlist |
Allows viewing CombatTimer bans |
op |
combattimer.bypass |
Bypasses combat timer tagging |
false |
combattimer.update.notify |
Allows receiving update notifications |
op |
Why Use CombatTimer?
Combat logging can ruin fights.
Common problems include:
- players disconnecting before dying
- players saving loot by logging out
- PvP fights ending unfairly
- combat loggers avoiding consequences
- staff needing to handle reports manually
- players abusing restarts to escape combat
CombatTimer solves this by keeping combat fair, visible, and configurable.
Use a simple timer, punish combat loggers directly, or enable logout villagers for a more interactive and loot-friendly system.
Best For
PvP servers
SMP servers
Survival servers
Faction servers
Hardcore servers
Event servers
Lifesteal-style servers
Compatibility
- Minecraft 1.21+
- Spigot / Paper
- Lightweight with minimal performance impact
Configuration Philosophy
CombatTimer is designed to be:
- simple to configure
- fair for players
- useful for staff
- strong against combat logging
You decide when combat starts, how long it lasts, and what happens when someone logs out.
Support
If you encounter issues or have feature requests, feel free to open a ticket in the Discord server.
Keep combat fair, stop logout abuse, and make every fight count.
评论 0
登录后参与评分
还没有评论,来抢沙发吧