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 comminuty!
Now, what are you waiting for? Join the community now!
c++
on right click with crimson fungus:
name of event-item is "&b&lGrzyb Prędkosci &7(PPM)"
if {speedmushroom::%player%} = 0:
apply swiftness 2 to the player for 3 minutes
timer(player, 600 seconds, "speedmushroom")
else:
send "&cNie mozesz tego uzyc! Bedziesz mogl uzyc tego dopiero za &7%{speedmushroom::%player%}%s"
function timer(p: player, duration: timespan, name: string):
set {name::%uuid of {_p}%::%{_name}%} to now
wait {_duration}
set {_wait} to difference between {name::%uuid of {_p}%::%{_name}%} and now
if {_wait} >= {_duration}:
delete {name::%uuid of {_p}%::%{_name}%}
applescript
on right click with crimson fungus:
name of event-item is "&b&lGrzyb Prędkosci &7(PPM)"
set {name::%uuid of player%::speedmushroom} to now