No Combat Commands (NCC)
A plugin that prevents players from using configured commands while in combat, with an anti combat-log system that can kill, warn, or log players who disconnect during a fight.
No Combat Commands (NCC)
No Combat Commands (NCC) — 1.5.0-1.21.11
A combat tagging plugin that locks you out of configured commands the moment you take damage from another player. A boss bar or action bar counts down your remaining combat time, and logging out mid-fight has consequences — depending on server settings, you'll either be killed instantly, given a short window to rejoin before dying, or simply have your logout recorded.
Commands
- `/NCC addcommand <command>` — adds a command to the blocked list - `/NCC removecommand <command>` — removes a command from the blocked list
Both commands require the `ncc.admin` permission and take effect immediately with no restart needed.
config.yml
```yaml
How long (in seconds) a player stays in combat after being hit
combat-tag-duration: 30
Anti Combat-Log system
Set to false to disable entirely
acl: true
KILL - kills the player instantly on logout
WARN - broadcasts a warning and gives them time to rejoin before dying
* - logs the logout silently, no punishment
acl-method: KILL
Only used when acl-method is WARN
How many seconds the player has to rejoin before dying
acl-warn-timer: 20
Combat timer display mode
BOSSBAR - shows a boss bar with a countdown
ACTIONBAR - shows a coloured square bar in the action bar
combat-bar: BOSSBAR
Mobility item cooldowns (in seconds)
Cooldown is applied after the item is used, not before
Bukkit handles blocking reuse while the cooldown is active
ender-pearl-cooldown: 15 wind-charge-cooldown: 15
Whether elytras are disabled while in combat
true = elytras cannot be used in combat
false = elytras are allowed in combat
disable-elytra-in-combat: true
Whether tridents are disabled while in combat
true = tridents cannot be used in combat
false = tridents are allowed in combat
disable-trident-in-combat: true
Commands blocked while a player is in combat
Add or remove entries using /NCC addcommand and /NCC removecommand
blocked-commands: - /tpa - /home - /spawn - /warp - /tp - /back - /rtp ```