diff --git a/init.sk b/init.sk index 7901231..d5b2c28 100644 --- a/init.sk +++ b/init.sk @@ -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 : #permission: skript.op trigger: