CombatLog
一个轻量且高度可配置的 CombatLog 防战斗退出插件,适用于 Paper 26.3。
击中玩家后,双方均会进入战斗状态。在计时器运行期间断开连接会导致死亡。不再能通过关闭游戏来逃避战斗。
功能特性
- 战斗标记 – 对 PvP 伤害(近战、箭矢、三叉戟、其他投射物以及滞留型药水云)进行攻击时,攻击者与受害者均会被标记。双方均可单独开关此功能。
- 退出惩罚 – 在战斗中断开的玩家将被击杀,可选添加闪电效果及自定义广播消息。你还可以在战斗退出时执行控制台命令(支持
%player%、%opponent% 占位符),例如收取罚款。
- 命令拦截 – 在战斗期间拦截所有命令(配合白名单)或仅拦截特定命令(黑名单)。别名和
minecraft: 前缀会自动检测。
- 移动限制 – 以下各项均可在配置文件中单独开启或关闭:
- 飞行
- 鞘翅滑翔
- 末影珍珠(珍珠保留在背包中)
- 紫颂果
- 下界/终界传送门
- 任何其他传送原因
- 实时计时器 – 动作栏和/或 Boss 条倒计时,并附带开始/结束音效。
- 智能处理 – 踢出、超时和服务端关闭可被排除在惩罚之外;击杀对手将立即结束你的战斗状态。
- 完全自定义的消息,使用 MiniMessage 格式。
- 世界过滤器 – 可按世界启用或禁用战斗系统(白名单或黑名单模式)。
- 忽略创造/旁观模式玩家和 NPC(可选)。
命令
| 命令 |
描述 |
/combatlog reload |
重载配置文件 |
/combatlog status [player] |
显示战斗状态 |
/combatlog tag <player> [seconds] |
将玩家标记为战斗状态 |
/combatlog untag <player> |
移除玩家的战斗状态 |
/combatlog list |
列出当前所有处于战斗状态的玩家 |
别名: /combat
权限
| 权限节点 |
描述 |
默认值 |
combatlog.admin |
使用 /combatlog 命令 |
OP |
combatlog.bypass.tag |
永远不会被标记为战斗状态 |
– |
combatlog.bypass.logout |
退出时不受到惩罚 |
– |
combatlog.bypass.commands |
允许在战斗中使用命令 |
– |
combatlog.bypass.restrictions |
允许在战斗中飞行、滑翔和传送 |
– |
combatlog.bypass.* |
拥有以上所有权限 |
– |
配置
所有内容均在 plugins/CombatLog/config.yml 中进行配置:战斗持续时间、受击刷新计时器、最小伤害阈值、命令模式、限制项、显示方式、音效及所有消息。使用 /combatlog reload 即可应用更改而无需重启服务器。
依赖要求
注意: 如果启用了 keepInventory 游戏规则,因战斗退出而被击杀的玩家不会掉落物品。
许可证
许可证链接: 或
CombatLog
A lightweight and highly configurable combat log prevention plugin for Paper 26.3.
Hit a player and you're both in combat. Log out while the timer is running and you die. No more escaping fights by closing the game.
Features
- Combat tagging – attacker and victim are tagged on PvP damage (melee, arrows, tridents, other projectiles and lingering potion clouds). Each side can be toggled separately.
- Punishment on logout – players who disconnect in combat are killed, with an optional lightning effect and a custom broadcast message. You can also run console commands on combat log (
%player%, %opponent%), e.g. to charge a fine.
- Command blocking – block all commands while in combat (with an allow list) or only specific commands (blacklist). Aliases and
minecraft: prefixes are detected automatically.
- Movement restrictions – each one can be switched on or off in the config:
- Flying
- Elytra gliding
- Ender pearls (the pearl stays in your inventory)
- Chorus fruit
- Nether/End portals
- Any other teleport cause
- Live timer – action bar and/or boss bar countdown, plus start/end sounds.
- Smart handling – kicks, timeouts and server shutdowns can be excluded from punishment; killing your opponent ends your combat immediately.
- Fully customizable messages using MiniMessage.
- World filter – enable or disable combat per world (whitelist or blacklist).
- Ignores creative/spectator players and NPCs (optional).
Commands
| Command |
Description |
/combatlog reload |
Reload the config |
/combatlog status [player] |
Show combat status |
/combatlog tag <player> [seconds] |
Put a player in combat |
/combatlog untag <player> |
Remove a player from combat |
/combatlog list |
List all players currently in combat |
Alias: /combat
Permissions
| Permission |
Description |
Default |
combatlog.admin |
Use /combatlog |
OP |
combatlog.bypass.tag |
Never gets tagged |
– |
combatlog.bypass.logout |
No punishment on logout |
– |
combatlog.bypass.commands |
May use commands in combat |
– |
combatlog.bypass.restrictions |
May fly, glide and teleport in combat |
– |
combatlog.bypass.* |
All of the above |
– |
Configuration
Everything is configured in plugins/CombatLog/config.yml: combat duration, timer refresh on hit, minimum damage, command mode, restrictions, displays, sounds and all messages. Use /combatlog reload to apply changes without restarting.
Requirements
Note: with the keepInventory gamerule enabled, players killed for combat logging won't drop their items.
LICENSE
LICENSE Link: or
评论 0
登录后参与评分
还没有评论,来抢沙发吧