hi, i have this code and i want the player that placed the tnt to not get damaged by the tnt:
Code:
on place of tnt:
cancel event
if {kitpvp_tntcd::%player%} is not set:
set {kitpvp_tntcd::%player%} to 0
if {kitpvp_tntcd::%player%} is not 0:
send "{@prefix} &cYou're On Cooldown!"
stop
remove 1 tnt from player's inventory
spawn 1 primed tnt at event-location
set {kitpvp_tntcd::%player%} to {@tnt_cooldown}
set {kitpvp_tntloc::%event-location%} to player
wait {@tnt_cooldown} seconds
set {kitpvp_tntcd::%player%} to 0
set action bar of player to "{@prefix} &bYour &4TNT &bCooldown Is Off!"
wait 2 seconds
set action bar of player to ""
stop