options: #Combat duration in seconds combat_duration: 25 on damage: if attacker is player: if {combatlog::%attacker%} is not set: set {combatlog::%attacker%} to true set {timeleft::%attacker%} to {@combat_duration} send "&cYou combat tagged &4%victim%&4." to attacker while {combatlog::%attacker%} is set: set action bar of attacker to "&cYou are in combat with %victim%. &4%{timeleft::%attacker%}% &4seconds left." wait 1 seconds subtract 1 from {timeleft::%attacker%} if {timeleft::%attacker%} is 0: send "&aYou are now free from combat tag." to attacker delete {combatlog::%attacker%} delete {timeleft::%attacker%} stop set {timeleft::%attacker%} to {@combat_duration} on damage: if victim is player: if {combatlog::%victim%} is not set: set {combatlog::%victim%} to true set {timeleft::%victim%} to {@combat_duration} send "&cYou combat tagged by &4%attacker%&4." to victim while {combatlog::%victim%} is set: set action bar of victim to "&cYou are in combat with %attacker%. &4%{timeleft::%victim%}% &4seconds left." wait 1 seconds subtract 1 from {timeleft::%victim%} if {timeleft::%victim%} is 0: send "&aYou are now free from combat tag." to victim delete {combatlog::%victim%} delete {timeleft::%victim%} stop set {timeleft::%victim%} to {@combat_duration} on death: if victim is player: if {combatlog::%player%} is set: send "&aYou are now free from combat tag." to player delete {combatlog::%player%} delete {timeleft::%player%} stop on quit: if {combatlog::%player%} is set: kill player delete {combatlog::%player%} set {combatlog.done::%player%} to true on join: if {combatlog.done::%player%} is set: delete {combatlog.done::%player%} wait 2 seconds send "&cYou died because you logged out during combat." on teleport: if {combatlog::%player%} is set: cancel event send "&cYou can't teleport during combat." command /sss: permission: * trigger: delete {combatlog::*}