NoMoreCombatLog
一款简单且可配置的 Paper 插件,用于防止玩家战斗退出(combat logging)。
功能
- 玩家在攻击或被攻击时将进入战斗状态。
- 战斗持续时间可以配置。
- 可以使用动作栏、Boss 栏或标题来显示战斗时间。
- 在战斗期间断开的玩家可以受到惩罚。
- 可以同时使用多种惩罚措施。
- 在战斗期间可以阻止玩家使用传送门和末影珍珠。
- 在战斗期间可以屏蔽命令。
- 支持命令黑名单和白名单模式。
- 可以在特定世界中禁用战斗机制。
- 可以启用或禁用创造模式下的战斗。
- 支持加入和重生后的宽限期。
- 活跃的战斗标签会在服务器重启后保留。
- 消息可以在
messages.yml中自定义修改。 - 管理员命令支持 Tab 补全。
- 支持 PlaceholderAPI。
- 旧版配置文件会自动迁移。
反击模式
如果你希望只有在玩家进行反击后才开始相互战斗,可以启用反击模式。
可以选择立即标记第一个攻击者。
安全区
你可以创建无法开始战斗的安全区。
安全区可以是球形或长方体,并且可以:
- 阻止战斗发生。
- 进入时移除活跃的战斗标签。
现有的基于半径的安全区仍然受支持。
战斗显示
可以在配置文件中更改战斗显示方式:
display:
type: ACTION_BAR
可用的显示类型:
ACTION_BAR
BOSS_BAR
TITLE
NONE
惩罚措施
支持以下类型的惩罚:
KILL
BAN
TEMPBAN
COMMAND
DROP_INVENTORY
DROP_EXPERIENCE
可以组合多种惩罚操作。
配置文件
config-version: 4
plugin:
enabled: true
combat:
duration: 30s
creative-mode: false
retaliation:
enabled: false
window: 10s
tag-attacker-immediately: true
grace-period:
join: 5s
respawn: 3s
mutual: true
damage-sources:
melee: true
projectiles: true
arrows: true
tridents: true
other-player-caused-damage: true
display:
type: ACTION_BAR
commands:
mode: BLACKLIST
list:
- home
- spawn
- warp
- tpa
teleport:
portals: false
ender-pearls: false
worlds:
disabled:
- world_the_end
safe-zones:
enabled: false
remove-combat-on-entry: false
punishment:
enabled: true
actions:
- type: KILL
integrations:
placeholder-api: true
debug:
enabled: false
持续时间可以这样书写:
30s
5m
2h
1d
1h30m
命令
| 命令 | 权限 | 描述 |
|---|---|---|
/nmcl tag <player> [duration] |
nomorecombatlog.admin.tag |
标记一名玩家 |
/nmcl untag <player> |
nomorecombatlog.admin.untag |
移除战斗标签 |
/nmcl status <player> |
nomorecombatlog.admin.status |
显示玩家的战斗状态 |
/nmcl extend <player> <duration> |
nomorecombatlog.admin.extend |
延长战斗标签时长 |
/nmcl list |
nomorecombatlog.admin.list |
列出活跃的战斗标签 |
/nmcl tagall [duration] |
nomorecombatlog.admin.tagall |
标记所有符合条件的玩家 |
/nmcl untagall |
nomorecombatlog.admin.untagall |
移除所有战斗标签 |
/nmcl debug <player> |
nomorecombatlog.admin.debug |
显示详细的玩家信息 |
/nmcl reload [config|messages|all] |
nomorecombatlog.admin.reload |
重载插件 |
/nmcl safezone add <name> <radius> |
nomorecombatlog.safezone.add |
添加一个基于半径的安全区 |
/nmcl safezone cuboid <name> <positions> |
nomorecombatlog.safezone.add |
添加一个长方体安全区 |
/nmcl safezone info <name> |
nomorecombatlog.safezone.list |
显示安全区信息 |
/nmcl safezone list |
nomorecombatlog.safezone.list |
列出所有安全区 |
/nmcl safezone remove <name> |
nomorecombatlog.safezone.remove |
移除一个安全区 |
nomorecombatlog.admin 权限允许访问所有管理员命令。
PlaceholderAPI
提供以下占位符:
%nmcl_in_combat%
%nmcl_combat_time%
%nmcl_combat_time_seconds%
%nmcl_opponent%
%nmcl_reason%
PlaceholderAPI 是可选的。即使没有它,插件也能正常工作。
开发者 API
NoMoreCombatLog 为其他插件提供了公共 API。
该 API 可用于:
- 检查玩家是否处于战斗状态。
- 获取剩余战斗时间。
- 获取当前对手及战斗原因。
- 标记、延长或移除玩家战斗标签。
- 监听战斗开始、刷新、结束以及战斗退出事件。
示例:
NMCLApi api = NoMoreCombatLog.getAPI();
if (api.isInCombat(player.getUniqueId())) {
Duration remaining = api.getRemainingTime(player.getUniqueId());
}
api.tag(player, Duration.ofSeconds(30));
api.untag(player);
可用事件:
PlayerCombatStartEvent
PlayerCombatRefreshEvent
PlayerCombatEndEvent
PlayerCombatLogEvent
如果发现错误或有任何功能请求,请在问题追踪器中报告。
NoMoreCombatLog
A simple and configurable Paper plugin that prevents players from combat logging.
Features
- Players are placed in combat when attacking or being attacked.
- The combat duration can be configured.
- Combat time can be displayed using an action bar, boss bar, or title.
- Players who disconnect during combat can be punished.
- Multiple punishments can be used at the same time.
- Players can be prevented from using portals and ender pearls during combat.
- Commands can be blocked during combat.
- Command blacklist and whitelist modes are supported.
- Combat can be disabled in specific worlds.
- Combat in creative mode can be enabled or disabled.
- Join and respawn grace periods are supported.
- Active combat tags are saved across server restarts.
- Messages can be changed in
messages.yml. - Admin commands include tab completion.
- PlaceholderAPI support is available.
- Old configurations are migrated automatically.
Retaliation Mode
Retaliation mode can be enabled if you only want mutual combat to start after a player fights back.
The first attacker can optionally be tagged immediately.
Safe Zones
You can create safe zones where players cannot start combat.
Safe zones can be spherical or cuboid and can:
- Prevent combat.
- Remove active combat tags when entered.
Existing radius-based safe zones are still supported.
Combat Displays
The combat display can be changed in the config:
display:
type: ACTION_BAR
Available display types:
ACTION_BAR
BOSS_BAR
TITLE
NONE
Punishments
The following punishment types are supported:
KILL
BAN
TEMPBAN
COMMAND
DROP_INVENTORY
DROP_EXPERIENCE
Multiple punishment actions can be combined.
Config
config-version: 4
plugin:
enabled: true
combat:
duration: 30s
creative-mode: false
retaliation:
enabled: false
window: 10s
tag-attacker-immediately: true
grace-period:
join: 5s
respawn: 3s
mutual: true
damage-sources:
melee: true
projectiles: true
arrows: true
tridents: true
other-player-caused-damage: true
display:
type: ACTION_BAR
commands:
mode: BLACKLIST
list:
- home
- spawn
- warp
- tpa
teleport:
portals: false
ender-pearls: false
worlds:
disabled:
- world_the_end
safe-zones:
enabled: false
remove-combat-on-entry: false
punishment:
enabled: true
actions:
- type: KILL
integrations:
placeholder-api: true
debug:
enabled: false
Durations can be written like this:
30s
5m
2h
1d
1h30m
Commands
| Command | Permission | Description |
|---|---|---|
/nmcl tag <player> [duration] |
nomorecombatlog.admin.tag |
Tags a player |
/nmcl untag <player> |
nomorecombatlog.admin.untag |
Removes a combat tag |
/nmcl status <player> |
nomorecombatlog.admin.status |
Shows a player's combat status |
/nmcl extend <player> <duration> |
nomorecombatlog.admin.extend |
Extends a combat tag |
/nmcl list |
nomorecombatlog.admin.list |
Lists active combat tags |
/nmcl tagall [duration] |
nomorecombatlog.admin.tagall |
Tags all eligible players |
/nmcl untagall |
nomorecombatlog.admin.untagall |
Removes all combat tags |
/nmcl debug <player> |
nomorecombatlog.admin.debug |
Shows detailed player information |
/nmcl reload [config|messages|all] |
nomorecombatlog.admin.reload |
Reloads the plugin |
/nmcl safezone add <name> <radius> |
nomorecombatlog.safezone.add |
Adds a radius safe zone |
/nmcl safezone cuboid <name> <positions> |
nomorecombatlog.safezone.add |
Adds a cuboid safe zone |
/nmcl safezone info <name> |
nomorecombatlog.safezone.list |
Shows safe-zone information |
/nmcl safezone list |
nomorecombatlog.safezone.list |
Lists all safe zones |
/nmcl safezone remove <name> |
nomorecombatlog.safezone.remove |
Removes a safe zone |
nomorecombatlog.admin gives access to all admin commands.
PlaceholderAPI
The following placeholders are available:
%nmcl_in_combat%
%nmcl_combat_time%
%nmcl_combat_time_seconds%
%nmcl_opponent%
%nmcl_reason%
PlaceholderAPI is optional. The plugin works normally without it.
Developer API
NoMoreCombatLog provides a public API for other plugins.
The API can be used to:
- Check whether a player is in combat.
- Get their remaining combat time.
- Get their current opponent and combat reason.
- Tag, extend, or untag players.
- Listen for combat start, refresh, end, and combat-log events.
Example:
NMCLApi api = NoMoreCombatLog.getAPI();
if (api.isInCombat(player.getUniqueId())) {
Duration remaining = api.getRemainingTime(player.getUniqueId());
}
api.tag(player, Duration.ofSeconds(30));
api.untag(player);
Available events:
PlayerCombatStartEvent
PlayerCombatRefreshEvent
PlayerCombatEndEvent
PlayerCombatLogEvent
If you find a bug or have a feature request, please report it on the issue tracker.
下载 NoMoreCombatLog
下载 NoMoreCombatLog
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoMoreCombatLog
下载 NoMoreCombatLog
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoMoreCombatLog
下载 NoMoreCombatLog
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoMoreCombatLog
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoMoreCombatLog
下载 NoMoreCombatLog
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NoMoreCombatLog
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
查看 1.21.x 版本更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧