https://skunity.com/tutorials/75
Posted by: duyzi from the skUnity Discord. View the thread on skUnity Discord here
Posted by: duyzi from the skUnity Discord. View the thread on skUnity Discord here
Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!
Now, what are you waiting for? Join the community now!
on inventory click:
clicked slot = 0
set {cooldown::%player%} to 150 seconds ago if {cooldown::%player%} isn't set
if difference between now and {cooldown::%player%} < 150 seconds:
stop
cancel event
set {cooldown::%player%} to now
# execute code
applescript
on event:
set {_waited} to difference between {cooldown::%player's uuid%} and now
if {_waited} is less than 10 seconds:
send "Try again in %difference between 10 seconds and {_waited}%"
stop
else:
set {cooldown::%player's uuid%} to now
#do event here