The problem is there is an error in line 65 and every 1 second subtract 1 from {tempban::*}
I whant to do like a tempban skript the ban player's just stay in the lobby because they cant use the menu because they have {ban.%player%} true
I whant to do like a tempban skript the ban player's just stay in the lobby because they cant use the menu because they have {ban.%player%} true
code_language.skript:
command /advertencia <player> <text>:
trigger:
if {permisso.helper.%player%} is true:
if arg 1 is set:
if arg 2 is not set:
send "&cKillaura, malcomportamiento, mods"
else:
if arg 2 is "killaura":
set {ban.%arg 1%} to true
send "{@logo}Kill aura tu ban sera asta que lo diga el staff" to arg 1
teleport the arg 1 to {lobby}
if arg 2 is "malcomportamiento":
add 1 to {advertencia.%arg 1%}
send "{@logo}Advertencia %{advertencia.%arg 1%}%/10"
if {advertencia.%arg 1%} is more than or equal to 10:
set {tempban.%arg 1%} to true
add 30 to {tempban::%arg 1%}
send "{@logo}Tienes 10 advertencias ban de 30 dias" to arg 1
teleport the arg 1 to {lobby}
wait 30 days#ignore this I goin to delete this
delete {ban.%arg 1%}
if arg 2 is "mods":
set {ban.%arg 1%} to true
add 30 to {tempban::%arg 1%}
send "{@logo}Ban 30 dias por usar algun tipo de mods" to arg 1
teleport the arg 1 to {lobby}
if arg 2 is "delete":
delete {advertencia.%arg 1%}
delete {ban.%arg 1%}
delete {tempban.%arg 1%}
else:
send "{@error}"
every 1 second:
subtract 1 from {tempban::*}
on join:
if {tempban::%player%} is less than 1:
send "{@logo}Tu ban a terminado esperamos que te comportes mejor"