Updated init.sk to allow skybattle minigame

main
Anorak_1 2022-11-12 20:58:55 +00:00
parent 2c7af495a7
commit b4cf3c61ff
1 changed files with 29 additions and 0 deletions

29
init.sk
View File

@ -1,6 +1,7 @@
on load:
send "[GG_Systems] Init Loaded" to console
send "[GG_Systems] Flags Ready"
send "[GG_Systems] SkyBattle Ready"
set {čas_kola} to 90
on skript start:
@ -39,6 +40,34 @@ command /stopscript_flags:
disable script file "flags.sk"
broadcast "§4Ukončuji Vlajky... "
command /startscript_skybattle:
description: Start the skybattle script and allow it to be used
usage: /startscript_skybattle
executable by: players and console
permission: skript.op
trigger:
if file path "plugins/Skript/scripts/skybattle.sk" is not missing:
disable script file "skybattle.sk"
#delete file path "plugins/Skript/scripts/skybattle.sk"
if file path "plugins/Skript/scripts/-skybattle.sk" is missing:
download from "https://gitea.anorak01.top/Anorak_1/SkyBattle/raw/branch/main/plugins/scripts/scripts/skybattle.sk" to file path "plugins/Skript/scripts/-skybattle.sk":
enable script file "skybattle.sk"
reload script "skybattle"
enable script file "skybattle"
reload script "skybattle"
broadcast "§aNačítám... "
wait 5 seconds
execute console command "/minigame_skybattle_start"
command /stopscript_skybattle:
description: Stop the skybattle minigame and disable all commands + events
usage: /stopflags
executable by: players and console
permission: skript.op
trigger:
disable script file "skybattle.sk"
broadcast "§4Ukončuji... "
command /doas <text>:
#permission: skript.op
trigger: