zuyn Posted July 17, 2021 Share Posted July 17, 2021 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 More sharing options...
StarBunnie Posted July 17, 2021 Share Posted July 17, 2021 (edited) 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 July 17, 2021 by StarBunnie 2 Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
zuyn Posted July 17, 2021 Author Share Posted July 17, 2021 Exactly what I was looking for, thanks! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now