Hi.
I've tried to make a ban skript plugin, but again something is wrong in my code...
Every 60 seconds in all worlds, the system loop all offline players, and if loop player is banned, subtract 1 from his ban time.
code:
error:
I've tried to make a ban skript plugin, but again something is wrong in my code...
Every 60 seconds in all worlds, the system loop all offline players, and if loop player is banned, subtract 1 from his ban time.
code:
code_language.skript:
every 10 seconds:
loop all offline players:
if {ban.%loop-player%} is true:
subtract 1 from {bantime.%loop-player%}
if {bantime.%loop-player%} = 0:
set {ban.%loop-player%} to false
set {bantime.%loop-player%} to 0
error:
code_language.skript:
There's no loop that matches 'loop-player', (ban.sk, line 98: if {ban.%loop-player%} is true:)