Jump to content

Skript Timer


zuyn

Recommended Posts

I am looking into creating a timer with skript, does anyone know what the most efficient way is to create a timer. It should do the following:

 Count the time someone takes doing some parkour (milliseconds too)

 Not cause any lag while multiple players are online

 

Link to comment
Share on other sites

25 minutes ago, zuyn said:

I am looking into creating a timer with skript, does anyone know what the most efficient way is to create a timer. It should do the following:

 Count the time someone takes doing some parkour (milliseconds too)

 Not cause any lag while multiple players are online

 

on walk on gold block:
 set {timer::%player's uuid%} to now

on walk on diamond block:
 set {_time} to difference between {timer::%player's uuid%} and now
 delete {timer::%player's uuid%}
 send "&7You took &e%{_time}%"

Obviously replace the blocks with how you detect they started a parkour and end it.

I made a jumpworld with WorldGuard by making zones called "jumpstart-jumpname" & "jumpend-jumpname" and when they enter a zone I just split it to detect the jump they are currently on and start the timer.

Edited by StarBunnie
  • Like 2

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...