code_language.skript:
command /countdown [<integer>]:
permission: eventcore.admin
trigger:
message "&c&l[!]&7 I will broadcast an message when the event starts!" to sender
set {_countdown} to arg-1
wait 1 minute
remove 1 from {_countdown}
if {_countdown} is 0:
broadcast "&c&l[!]&7 Event is starting! The host will revive everyone shortly."
set bossbar "novaeventbar" title to "&b&lEVENT:&r %{_arg1}%, &b&lHOST:&r %{_arg2}% &b&lALIVE:&r %size of {alive::*}%"
if {_countdown} is 1:
broadcast "&c&l[!]&7 Event is starting in 1 minute!"
else:
broadcast "&c&l[!]&7 Event is starting in %{_countdown}% minutes!"
Posted by: notazex from the skUnity Discord. View the thread on skUnity Discord here