DUXPLIMA Documentation

Combat Tag

Who gets tagged and for how long, the bossbar, action bar and glow, and how staff see and remove tags.

The combat tag marks players who are fighting. Every other combat module asks it whether a player is tagged. File: configs/combattag/CombatTagSettings.yml.

Who gets tagged

HitTags
A player hits a player by hand or with any itemBoth
A player's arrow, trident, snowball, egg, wind charge or other projectile hits a playerBoth
A player hits themself, such as with their own arrowNobody
A mob, fall, fire, lava, TNT or a potion cloudNobody
A hit another plugin cancelled (a safe zone, beginner protection, a claim)Nobody

Every new hit sets the timer back to the full duration. The attacker becomes the player's "last attacker", who gets the kill if the player dies or logs out.

Each of the two players is checked on their own. A player is not tagged if:

  • they are in a world listed in disabledWorlds,
  • they stand in a WorldGuard region with the combat-tag flag set to deny, or
  • useTagBypassPermission is on and they have uxmpvpcore.bypass.combattag.

The other player can still be tagged by the same hit.

settings

KeyDefaultMeaning
combatDuration15Seconds a tag lasts after the last hit
perWorldCombatDurationsemptyA different duration per world, such as world_nether: 10
tagBypassPermissionuxmpvpcore.bypass.combattagThe permission that keeps a player from being tagged
useTagBypassPermissionfalseWhether that permission is checked. Leave it off: with it on, every op is never tagged
disabledWorldsexample1, example_worldWorlds where nobody is tagged
quitEventPriorityMONITORWhen the plugin handles leaving, compared with other plugins
deathEventPriorityHIGHESTWhen it handles deaths
damageEventPriorityHIGHESTWhen it handles hits. It must come after protection plugins, so their cancelled hits do not tag
settings:
  combatDuration: 15
  perWorldCombatDurations:
    world_nether: 10
    arena: 30
  disabledWorlds:
    - lobby

How a tag ends

ReasonWhen
EXPIREDThe timer ran out, or the server stopped
DEATHThe player died
LOGOUTThe player left the server
MANUAL_REMOVE, ADMINStaff removed the tag

When a tag ends, the player gets the leave message and the end texts of the bossbar and action bar. What else happens depends on the reason; see Basic Concepts.

If the player dies with keep inventory on, nothing changes about the drops. Otherwise the drops go through the plugin, so drop protection can lock them.

Messages, bossbar and action bar

SectionKeyDefault
combatTagMessagestagEnterMessage"You are now in combat. Do not log out."
tagLeaveMessage"You are no longer in combat."
bossbarSettingsenabledtrue
progressMessageDamage given, the progress bar, damage taken
endMessage"You are no longer in combat."
barColorRED. Also PINK, BLUE, GREEN, YELLOW, PURPLE, WHITE
barStyleNOTCHED_6. Also PROGRESS, NOTCHED_10, NOTCHED_12, NOTCHED_20
actionbarSettingsenabledtrue
progressMessage, endMessageThe same as the bossbar

The bossbar and action bar are updated every second. Leave the enter or leave message empty to send none. All of them can use {player}, every combat placeholder and PlaceholderAPI.

bossbarSettings:
  enabled: true
  progressMessage: "<red>Combat <white>{combat_time}s <gray>vs {combat_attacker}"
  endMessage: "<green>You are safe."
  barColor: RED
  barStyle: PROGRESS

The progress bar

{combat_progress_bar} is drawn from progressbarSettings:

KeyDefaultMeaning
length15How many symbols
symbolFull, symbolEmptyA vertical barThe symbol for time used and time left
completedColor&aColour of the used part
notCompletedColor&cColour of the part left
prefix, suffix&7Text before and after the bar

Glow

Tagged players glow, and the colour depends on who looks. Nobody else's glow changes: the colours are sent to each viewer on their own with PacketEvents.

ViewerColourKey in glowSettings
The tagged player themselfNo glow
A member of another teamRedenemyColor
A teammateBlueteammateColor
A member of an allied teamLight purpleallyColor
Anyone else, or everyone when no team plugin is installedWhitenoTeamColor

Teams come from BetterTeams or TulparClan, see Integrations. The colours are the 16 chat colours, such as RED, GOLD, AQUA, DARK_PURPLE. glowSettings.enabled: false turns the glow off.

configs/utils/Glow.yml decides who never glows:

KeyDefaultMeaning
bypassPermissionuxmpvpcore.bypass.glowPlayers with it do not glow. Ops have it
disabledWorldsexample1, example_worldWorlds where nobody glows

Seeing and removing tags

/combattags opens a menu of everyone in combat, with the time left and the last attacker. Staff with uxmpvpcore.combattag.admin can left-click a head to remove that tag; /combattag list opens the same menu. The menu is menus/combattag/combat_tags.yml.

/combattag untag <player> removes a tag from the command line. A removed tag counts no kill and no death, and the battle is not saved.

The admin messages are under adminMessages, and the PlaceholderAPI texts under placeholderMessages, see Placeholders.

performanceSettings

maxDamageEntryForPlayer (100) is how many hits one tag remembers per opponent for the battle log details. The damage totals count every hit.

Related: Combat Restrictions, Barrier