I would like some help. I am wanting a cooldown for the pvp message to the attacker so they cannot sit there and spam their chat.
I've tried following a post called cooldowns for dummies, but it just wasn't working out.
I've tried following a post called cooldowns for dummies, but it just wasn't working out.
Code:
on damage of player:
victim is a player
attacker is a player
if world of victim is not "spawn":
cancel event
play sound "ENTITY_VILLAGER_NO" to attacker
send "&7PVP is not enabled here!" to attacker