Hi all, I created this simple stopwatch and I had come a doubt regarding whether it could cause lag to the server and if there is a better way to create it.
This is the code:
Sorry for my english.
Thanks
This is the code:
Code:
On skript load:
set {time} to 0
command /stopwatch [<text>]:
trigger:
if arg-1 is "start":
set {stopwatch} to true
if arg-1 is "stop":
set {stopwatch} to false
if arg-1 is "show":
send "&b{time}" to player
every second:
if {stopwatch} is "true":
add 1 to {time}
stop
Sorry for my english.
Thanks