I need help with this, I don't get the "&c%victim% &7died" message when the victim doesn't take damage from the attacker, no error comes up.
on damage of a player:
if damage is greater than victim's health:
cancel event
if attacker is a player:
broadcast "&c%victim% &7was slain by &a%attacker%"
else:
broadcast "&c%victim% &7died"
play sound "block.beacon.deactivate" with volume 100 to all players
send title "&c&lYOU DIED!" with subtitle "&7You are now a spectator!" to victim for 5 seconds
strike lightning effect at the victim
drop all items in victim's inventory at victim
clear inventory of victim
on damage of a player:
if damage is greater than victim's health:
cancel event
if attacker is a player:
broadcast "&c%victim% &7was slain by &a%attacker%"
else:
broadcast "&c%victim% &7died"
play sound "block.beacon.deactivate" with volume 100 to all players
send title "&c&lYOU DIED!" with subtitle "&7You are now a spectator!" to victim for 5 seconds
strike lightning effect at the victim
drop all items in victim's inventory at victim
clear inventory of victim