Added proper minigame end...

Only misc stuff like /checklist to be added
main
Anorak_1 2022-11-12 22:02:10 +01:00
parent 2dcd9ec74a
commit 695686873b
1 changed files with 10 additions and 9 deletions

View File

@ -55,8 +55,9 @@ command /minigame_skybattle_start:
executable by: the console and players
permission: skript.op
trigger:
#execute console command "/gamerule doImmediateRespawn true"
set {skybattle::time} to 120
execute console command "/gamerule doImmediateRespawn true"
# časomíra podle které se nastaví zbytek skriptu
set {skybattle::time} to 240
clear {skybattle::gaming_players::*}
loop 10 times:
loop entries of team "IDList%loop-number%":
@ -202,14 +203,14 @@ command /minigame_skybattle_start:
wait 1 second
if {skybattle::game_status} is "end":
send title "&4Konec hry" to all players
make console execute command "/function sky:battle"
set {skybattle::game_on} to "False"
wait 3 seconds
teleport all players to {skybattle::lobbylocation}
set {skybattle::gaming_players::*}'s gamemode to adventure
wait 5 seconds
execute console command "/stopscript_skybattle"
function setbordercenter():
set {_x} to {skybattle::arena%{skybattle::current_arena}%::border}'s x coord