This commit is contained in:
Helixu 2022-01-09 17:51:13 +00:00
parent 02b7ec9b51
commit 2e4f28f8a7

View file

@ -1,8 +1,3 @@
on load:
broadcast "&c----------"
broadcast "&cHelixuAddons loaded!"
broadcast "&cModule made by Mizzy#1111/Helixu#1111
broadcast "&c----------"
command /sethubloc:
permission: op
@ -32,46 +27,44 @@ command /gameupdate:
broadcast "&eThis server will restart soon: &bFor a game update"
broadcast "&eYou have &a30 seconds &eto brace yourself!"
loop all players:
send loop-player title "&e&lSERVER REBOOT!" with subtitle "&aFor a game update &7(in &e30s&7)
send title "&e&lSERVER REBOOT!" with subtitle "&aFor a game update &7(in &e30s&7)" to loop-player
wait 20 seconds
broadcast "&eThis server will restart soon: &bFor a game update"
broadcast "&c&lIn 10 seconds!"
wait 5 seconds
broadcast &eThis server will restart in &c&l5"
broadcast "&eThis server will restart in &c&l5"
wait 1 seconds
broadcast &eThis server will restart in &c&l4"
broadcast "&eThis server will restart in &c&l4"
wait 1 seconds
broadcast &eThis server will restart in &c&l3"
broadcast "&eThis server will restart in &c&l3"
wait 1 seconds
broadcast &eThis server will restart in &c&l2"
broadcast "&eThis server will restart in &c&l2"
wait 1 seconds
broadcast &eThis server will restart in &c&l1"
broadcast "&eThis server will restart in &c&l1"
wait 1 seconds
make console execute command "kickall &cThis server is restarting &bFor a game update."
make console execute command "stop"
command /srestart:
trigger:
permission: helixu.srestart
trigger:
broadcast "&eThis server will restart soon: &bForced Reboot"
broadcast "&eYou have &a30 seconds &eto brace yourself!"
loop all players:
send loop-player title "&e&lSERVER REBOOT!" with subtitle "&aForced Reboot &7(in &e30s&7)
send title "&e&lSERVER REBOOT!" with subtitle "&aForced Reboot &7(in &e30s&7)" to loop-player
wait 20 seconds
broadcast "&eThis server will restart soon: &bForced Reboot"
broadcast "&c&lIn 10 seconds!"
wait 5 seconds
broadcast &eThis server will restart in &c&l5"
broadcast "&eThis server will restart in &c&l5"
wait 1 seconds
broadcast &eThis server will restart in &c&l4"
broadcast "&eThis server will restart in &c&l4"
wait 1 seconds
broadcast &eThis server will restart in &c&l3"
broadcast "&eThis server will restart in &c&l3"
wait 1 seconds
broadcast &eThis server will restart in &c&l2"
broadcast "&eThis server will restart in &c&l2"
wait 1 seconds
broadcast &eThis server will restart in &c&l1"
broadcast "&eThis server will restart in &c&l1"
wait 1 seconds
make console execute command "kickall &cThis server is restarting."
make console execute command "stop"
make console execute command "stop"