Updated init.sk initialization to disable skybattle.sk minigame on startup

main
Anorak_1 2022-11-12 21:01:14 +00:00
parent b4cf3c61ff
commit 04d17b406c
1 changed files with 5 additions and 1 deletions

View File

@ -8,8 +8,12 @@ on skript start:
if file path "plugins/Skript/scripts/-flags.sk" is not missing:
if file path "plugins/Skript/scripts/flags.sk" is not missing:
delete file path "plugins/Skript/scripts/-flags.sk"
if file path "plugins/Skript/scripts/-skybattle.sk" is not missing:
if file path "plugins/Skript/scripts/skybattle.sk" is not missing:
delete file path "plugins/Skript/scripts/-skybattle.sk"
wait 1 second
disable script file "flags.sk"
disable script file "skybattle.sk
set {flags_state} to "stop"
command /startscript_flags:
@ -61,7 +65,7 @@ command /startscript_skybattle:
command /stopscript_skybattle:
description: Stop the skybattle minigame and disable all commands + events
usage: /stopflags
usage: /stopscript_skybattle
executable by: players and console
permission: skript.op
trigger: