code_language.skript:
at 06:00:
time is 6 am
send players title "&6Morning" with subtitle "&f6:00 am"
execute console command "/Period Morning"
loop 1 times:
execute console command "/time add 1"
at 07:20:
time is 7:20 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Before school" with subtitle "&f7:20 am"
execute console command "/Period Before school"
loop 1 times:
execute console command "/time add 1"
stop
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 08:20:
time is 8:20 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Before Class" with subtitle "&f8:20 am"
execute console command "/Period Before Class"
loop 1 times:
execute console command "/time add 1"
stop
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 08:30:
time is 8:30 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Period 1" with subtitle "&f8:30 am"
execute console command "/Period 1"
loop 1 times:
execute console command "/time add 1"
stop
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 09:20:
time is 9:20 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Period 2" with subtitle "&f9:20 am"
execute console command "/Period 2"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 10:10:
time is 10:10 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Form time" with subtitle "&f10:10 am"
execute console command "/Period Form time"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 10:35:
time is 10:35 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Break time" with subtitle "&f10:35 am"
execute console command "/Period Break time"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 11:00:
time is 11:00 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Period 3" with subtitle "&f11:00 am"
execute console command "/Period 3"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 11:50:
time is 11:50 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Period 4" with subtitle "&f11:50 am"
execute console command "/Period 4"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 12:40:
time is 12:40 am
if {day} is not "Saturday" or "Sunday":
send players title "&6Lunch time" with subtitle "&f12:40 am"
execute console command "/Period Lunch time"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 13:20:
time is 1:20 pm
if {day} is not "Saturday" or "Sunday":
send players title "&6Period 5" with subtitle "&f1:20 pm"
execute console command "/Period 5"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 14:10:
time is 2:10 pm
if {day} is not "Saturday" or "Sunday":
send players title "&6Period 6" with subtitle "&f2:10 pm"
execute console command "/Period 6"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 15:00:
time is 3 pm
if {day} is not "Saturday" or "Sunday":
send players title "&6Hometime" with subtitle "&f3:00 pm"
execute console command "/Period Hometime"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 15:20:
time is 3:20 pm
if {day} is not "Saturday" or "Sunday":
send players title "&6After school" with subtitle "&f3:20 pm"
execute console command "/Period After school"
loop 1 times:
execute console command "/time add 1"
else:
execute console command "/Period No School"
loop 1 times:
execute console command "/time add 1"
stop
at 21:00:
time is 9 pm
send players title "&6Night time" with subtitle "&f9:00 pm"
execute console command "/Period Night time"
loop 1 times:
execute console command "/time add 1"
at 23:59:
time is 11:59 am
send players title "&6MidNight" with subtitle "&f12:00 pm"
execute console command "/Period midnight"
loop 1 times:
execute console command "/time add 1"
if {day} is "Monday":
execute console command "/day Tuesday"
if {day} is "Tuesday":
execute console command "/day Wednesday"
if {day} is "Wednesday":
execute console command "/day Thursday"
if {day} is "Thursday":
execute console command "/day Friday"
if {day} is "Friday":
execute console command "/day Saturday"
if {day} is "Saturday":
execute console command "/day Sunday"
if {day} is "Sunday":
execute console command "/day Monday"
so theres no errors in the code but at say 8:30 it will broadcast period 1 then broadcast period 4 when its not even the time?