SHOW:
|
|
- or go back to the newest paste.
1 | Intro = "{text:\"[\",color:green},{text:\"SERVER\",color:red},{text:\"] \",color:green}" | |
2 | commands.tellraw("@a ["..Intro..",{text:\"The server's time controller script is \",color:yellow},{text:\"ONLINE!\",color:green()}]") | |
3 | while true do | |
4 | print(os.time()) | |
5 | if os.time() > 19 then | |
6 | commands.tellraw("@a ["..Intro..",{text:\"WARNING! \",color:red},{text:\"The time is being fast-forwarded for your convenience. Thank you and have a nice day,\"}]") | |
7 | while os.time() < 5 or os.time() > 19 do | |
8 | commands.time("add 100") | |
9 | sleep(0.01) | |
10 | end | |
11 | end | |
12 | sleep(1) | |
13 | end |