Combat¶
Lightweight combat tagging: actionbar countdown, optional glowing, death cosmetics, and attribution for crystals, TNT, pets, and more.
Module key: combat
Config: plugins/DonutSMPCore/combat/config.yml
Features¶
| Feature | Config |
|---|---|
| Tag duration | General.duration (seconds) |
| Actionbar text | General.Format — use %seconds% |
| Glowing while tagged | General.CombatTagGlowing |
| Ignore OP | General.ignore-op |
| World gate | enable-worlds |
| Untag on death / enemy death | untag-on-death, untag-on-enemy-death |
| Lightning effect on kill | lightning-on-kill |
| Link pets / projectiles / rod / TNT | link-* |
| End crystals / anchors / beds | link-end-crystals, link-respawn-anchor, link-bed-explosions |
| Early melee tag via packets | performance.packet-melee-tag |
Team friendly fire¶
Combat does not tag same-team players when team PvP is disabled. The team module cancels friendly fire and shows a damage-blocked message.
Fly integration¶
When both fly and combat are enabled, fly’s “disable on combat” uses the combat module’s tags instead of a separate map.
Performance notes¶
- Timer / actionbar intervals with
-1follow live server tick rate. - Packet melee tagging can be throttled (
packet-throttle-ms: -1= auto). - Hot path is cache-friendly; keep
packet-melee-tagon for snappy tags.
Out of scope¶
Combat tagging does not include: safezones, WorldGuard barriers, command blocking, elytra/pearl locks, newbie protection, or knockback overrides.