hi, I'm creating an Athletic Server and using skript.
I wanted to create the sign that has the cooldown after it sent message to player.
However it does not work, it means the function of the cooldown was ignored.
So could you tell me how to make it work correctly,please.
------BELOW IS THE CODE------
on rightclick:
block is a sign
world is "xxx"
line 1 of clicked block is "&e-|-&6&lGoal&e-|-"
line 2 of clicked block is "&2[RightClick]"
line 3 of clicked block is "&8%world%"
line 4 of clicked block is "&9===Athletic==="
set {point.%player%.%world%} to location of clicked block
set {_waittime} to difference between {lasttime.%player%} and now
if {_waittime} is less than a minute:
message "You have to wait %difference between a minute and {_waittime}% sec."
else:
broadcast "&a%player% cleared xxx!!"
set {lasttime.%player%} to now
I wanted to create the sign that has the cooldown after it sent message to player.
However it does not work, it means the function of the cooldown was ignored.
So could you tell me how to make it work correctly,please.
------BELOW IS THE CODE------
on rightclick:
block is a sign
world is "xxx"
line 1 of clicked block is "&e-|-&6&lGoal&e-|-"
line 2 of clicked block is "&2[RightClick]"
line 3 of clicked block is "&8%world%"
line 4 of clicked block is "&9===Athletic==="
set {point.%player%.%world%} to location of clicked block
set {_waittime} to difference between {lasttime.%player%} and now
if {_waittime} is less than a minute:
message "You have to wait %difference between a minute and {_waittime}% sec."
else:
broadcast "&a%player% cleared xxx!!"
set {lasttime.%player%} to now