
CombatLog 是什么?
CombatLog 可防止玩家在与其他玩家交战时断开连接。该模组通过在被试图离线的玩家身上触发死亡效果来实现这一功能。
为什么我应该使用 CombatLog?
如果你的服务器旨在提供公平且有趣的战斗体验,CombatLog 是必装项,可有效阻止玩家在濒临死亡时立即断开连接。
配置
要配置此模组:
- 将 CombatLog 放入服务器的
plugins 文件夹中并启动服务器
- 导航至 plugins/CombatLog/config.yml
- 使用你选择的文本编辑器打开该文件
- 完成后保存文件
- 运行
/combatlog-reload 命令以重新加载配置
CombatTime(战斗时间)
玩家在攻击或被其他玩家攻击后被视为处于战斗状态的持续时间。默认值为 30 秒。
BarLength(进度条长度)
显示在退出战斗前的加载式进度条的长度。默认值同样为 30 秒。建议将此值设置为 CombatTime 的倍数或分数(例如:CombatTime: 30, BarLength: 120 或 30 或 15),但这并非强制要求。
DeathMsg(死亡消息)
玩家在战斗中断开连接时显示的自定义死亡消息。默认值为 "%player% quit while fighting %killer%!"。%player% 和 %killer% 是变量,在实际消息中会被替换为对应的玩家名称和击杀者名称。

What is CombatLog?
CombatLog prevents players from disconnecting while fighting another player. This is achieved by killing the player if they try to leave.
Why should I use CombatLog?
If your server aims to provide fair and fun fights, CombatLog is a must to stop players from disconnecting as soon as they are close to dying.
Config
To configure this mod:
- Start the server with CombatLog in your plugins folder
- Navigate to plugins/CombatLog/config.yml
- Open the file with a text editing program of your choice
- Save the file once you're done
- Run /combatlog-reload to reload the configuration
CombatTime
The time a player is considered as being in combat after hitting or getting hit by another player. The default value is 30 seconds.
BarLength
The length of the bar which acts like a loading bar until you can get out of combat. The default value is also 30 seconds. It is recommended but not a must to set this value to a multiple/fraction of the CombatTime (eg. CombatTime: 30 BarLength: 120 or 30 or 15).
DeathMsg
The custom death message for players who disconnect during combat. The default value is "%player% quit while fighting %killer%!". The strings %player% and %killer% are variables, that means they are replaced by the name of the player and the killer in the actual message.
评论 0
登录后参与评分
还没有评论,来抢沙发吧