on join:
{kicksayisi.%player%} is not set:
set {kicksayisi.%player%} to 0
on command "kick %arg 1%":
add {kicksayisi.%arg 1%} to 1
if {kicksayisi.%arg 1%} is 3:
execute console command "ban %arg 1%"
wait 10 minutes
execute console command "pardon %arg 1%"
set {kicksayisi.%arg 1%} to 0