I make a skript, but kick and ban lines does not work. Can someone help?
variables:
{kill counter.%player%.kills_total} = 0
on death of player:
add 1 to {kill counter.%player%.deaths_total}
message " &6You died &e&l%{kill counter.%player%.deaths_total}% &6times."
if {kill counter.%player%.deaths_total} = 3:
set {kill counter.%player%.deaths_total} to 0
make console execute command "kick %player% &6you died 3 times, you will be able to log in after 15 minutes"
wait 10 ticks
make console execute command "ban %player% &6you died 3 times, you will be able to log in after 15 minutes"
wait 15 minutes
make console execute command "pardon %player%"
variables:
{kill counter.%player%.kills_total} = 0
on death of player:
add 1 to {kill counter.%player%.deaths_total}
message " &6You died &e&l%{kill counter.%player%.deaths_total}% &6times."
if {kill counter.%player%.deaths_total} = 3:
set {kill counter.%player%.deaths_total} to 0
make console execute command "kick %player% &6you died 3 times, you will be able to log in after 15 minutes"
wait 10 ticks
make console execute command "ban %player% &6you died 3 times, you will be able to log in after 15 minutes"
wait 15 minutes
make console execute command "pardon %player%"