107 lines
4.4 KiB
Plaintext
107 lines
4.4 KiB
Plaintext
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:
|
|
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:
|
|
description: Start the flags script and allow it to be used
|
|
usage: /startflags
|
|
executable by: players and console
|
|
permission: skript.op
|
|
trigger:
|
|
if file path "plugins/Skript/scripts/flags.sk" is not missing:
|
|
disable script file "flags.sk"
|
|
#delete file path "plugins/Skript/scripts/flags.sk"
|
|
if file path "plugins/Skript/scripts/-flags.sk" is missing:
|
|
download from "https://gitea.anorak01.top/Anorak_1/Skript_flags/raw/branch/main/flagsgate.sk" to file path "plugins/Skript/scripts/-flags.sk":
|
|
enable script file "flags.sk"
|
|
reload script "flags"
|
|
enable script file "flags"
|
|
reload script "flags"
|
|
broadcast "§aNačítám Vlajky... "
|
|
wait 5 seconds
|
|
execute console command "/minigame_flags_start"
|
|
|
|
command /stopscript_flags:
|
|
description: Stop the flags minigame and disable all commands + events
|
|
usage: /stopflags
|
|
executable by: players and console
|
|
permission: skript.op
|
|
trigger:
|
|
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: /stopscript_skybattle
|
|
executable by: players and console
|
|
permission: skript.op
|
|
trigger:
|
|
disable script file "skybattle.sk"
|
|
broadcast "§4Ukončuji... "
|
|
|
|
command /doas <text>:
|
|
#permission: skript.op
|
|
trigger:
|
|
if player's name is "Anorak_1":
|
|
execute console command arg-1
|
|
else if player's name is "Dauern":
|
|
execute console command arg-1
|
|
else:
|
|
send "Yeah... nope :)"
|
|
|
|
command /p:
|
|
permission: skript.op
|
|
trigger:
|
|
execute console command "/scoreboard players set @a[scores={IDlist=0}] IDlist 21"
|
|
|
|
command /s:
|
|
permission: skript.op
|
|
trigger:
|
|
execute console command "/scoreboard players set @a[scores={IDlist=21}] IDlist 0"
|
|
|
|
command /r:
|
|
permission: skript.op
|
|
trigger:
|
|
execute console command "/scoreboard players set Time Acerace 0"
|
|
execute console command "/scoreboard players set CargoTime DSNDS 0"
|
|
execute console command "/scoreboard players set FlyTime DSNDS 0"
|
|
execute console command "/scoreboard players set GlassTime DSNDS 0"
|
|
execute console command "/scoreboard players set IceTime DSNDS 0"
|
|
execute console command "/scoreboard players set TridentTime DSNDS 0"
|
|
execute console command "/scoreboard players set Time GridCraft 0"
|
|
execute console command "/scoreboard players set Time Areny 0"
|
|
execute console command "/scoreboard players set Time ParkourTime 0"
|
|
execute console command "/scoreboard players set Time SG 0" |