i am making a skript to report raids and breaches for a SCP server but i cant get the bossbar to work please help me
on chat:
if message starts with "AEON report breach":
cancel event
broadcast "&8[&4AEON&8] &cContainment Breach Detected!"
make console execute command "bossbar create aeon_alert \"Containment Breach Detected\""
make console execute command "bossbar set aeon_alert color red"
make console execute command "bossbar set aeon_alert players @a"
make console execute command "bossbar set aeon_alert value 100"
make console execute command "playsound minecraft:entity.warden.sonic_boom master @a ~ ~ ~ 2 1"
wait 120 seconds
make console execute command "bossbar remove aeon_alert"
else if message starts with "AEON report raid":
cancel event
broadcast "&8[&4AEON&8] &5Chaos Insurgency Raid Detected!"
make console execute command "bossbar create aeon_alert \"Chaos Insurgency Raid Detected\""
make console execute command "bossbar set aeon_alert color purple"
make console execute command "bossbar set aeon_alert players @a"
make console execute command "bossbar set aeon_alert value 100"
make console execute command "playsound minecraft:event.raid.horn master @a ~ ~ ~ 2 1"
wait 120 seconds
make console execute command "bossbar remove aeon_alert"