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
| Hit | Tags |
|---|---|
| A player hits a player by hand or with any item | Both |
| A player's arrow, trident, snowball, egg, wind charge or other projectile hits a player | Both |
| A player hits themself, such as with their own arrow | Nobody |
| A mob, fall, fire, lava, TNT or a potion cloud | Nobody |
| 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-tagflag set to deny, or useTagBypassPermissionis on and they haveuxmpvpcore.bypass.combattag.
The other player can still be tagged by the same hit.
settings
| Key | Default | Meaning |
|---|---|---|
combatDuration | 15 | Seconds a tag lasts after the last hit |
perWorldCombatDurations | empty | A different duration per world, such as world_nether: 10 |
tagBypassPermission | uxmpvpcore.bypass.combattag | The permission that keeps a player from being tagged |
useTagBypassPermission | false | Whether that permission is checked. Leave it off: with it on, every op is never tagged |
disabledWorlds | example1, example_world | Worlds where nobody is tagged |
quitEventPriority | MONITOR | When the plugin handles leaving, compared with other plugins |
deathEventPriority | HIGHEST | When it handles deaths |
damageEventPriority | HIGHEST | When 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
| Reason | When |
|---|---|
EXPIRED | The timer ran out, or the server stopped |
DEATH | The player died |
LOGOUT | The player left the server |
MANUAL_REMOVE, ADMIN | Staff 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
| Section | Key | Default |
|---|---|---|
combatTagMessages | tagEnterMessage | "You are now in combat. Do not log out." |
tagLeaveMessage | "You are no longer in combat." | |
bossbarSettings | enabled | true |
progressMessage | Damage given, the progress bar, damage taken | |
endMessage | "You are no longer in combat." | |
barColor | RED. Also PINK, BLUE, GREEN, YELLOW, PURPLE, WHITE | |
barStyle | NOTCHED_6. Also PROGRESS, NOTCHED_10, NOTCHED_12, NOTCHED_20 | |
actionbarSettings | enabled | true |
progressMessage, endMessage | The 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:
| Key | Default | Meaning |
|---|---|---|
length | 15 | How many symbols |
symbolFull, symbolEmpty | A vertical bar | The symbol for time used and time left |
completedColor | &a | Colour of the used part |
notCompletedColor | &c | Colour of the part left |
prefix, suffix | &7 | Text 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.
| Viewer | Colour | Key in glowSettings |
|---|---|---|
| The tagged player themself | No glow | |
| A member of another team | Red | enemyColor |
| A teammate | Blue | teammateColor |
| A member of an allied team | Light purple | allyColor |
| Anyone else, or everyone when no team plugin is installed | White | noTeamColor |
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:
| Key | Default | Meaning |
|---|---|---|
bypassPermission | uxmpvpcore.bypass.glow | Players with it do not glow. Ops have it |
disabledWorlds | example1, example_world | Worlds 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
Was this page helpful?