From 695686873bdaa8c511ee6dd00eb033aa8fcf1f9a Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Sat, 12 Nov 2022 22:02:10 +0100 Subject: [PATCH] Added proper minigame end... Only misc stuff like /checklist to be added --- plugins/scripts/scripts/skybattle.sk | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index cd79aea..d7ce074 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -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