I have been making combat log for my server but when I use options. it says that send "{@prefix} &cYou can't use commands while in combat!" to player is not a condition or effect. how do I make it so it doesn't say that. does options need a plugin? please tell me
My code:
[doublepost=1629778621,1629778299][/doublepost]message (so it can get to the top xD)
My code:
Code:
options:
prefix: "&7[&c&lCombat&b&lLog&7]"
on damage:
if {combatlog::%victim's uuid%} is true:
stop
if {combatlog::%attacker's uuid%} is true:
stop
set {combatlog::%victim's uuid%} to true
set {combatlog::%attacker's uuid%} to true
wait 5 seconds
set {combatlog::%victim's uuid%} to false
set {combatlog::%attacker's uuid%} to false
on quit:
if {combatlog::%player's uuid%} is true:
broadcast "{@prefix} &c%player% left while in combat! he deserves a death!"
on command:
if {combatlog::%player's uuid%} is true:
cancel event
send "{@prefix} &cYou can't use commands while in combat!"