diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index edeb919..36326e1 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -104,6 +104,8 @@ command /minigame_skybattle_start: set {skybattle::gaming_players::*}'s gamemode to spectator resetborder() loop 10 times: + if {skybattle:current_arena} is not 0: + make console execute command "/function sky:battle" clear {skybattle::IDList%loop-number%::alive_players::*} set {skybattle::IDList%loop-number%::alive_number} to 4 loop entries of team "IDList%loop-number%": @@ -218,7 +220,7 @@ command /minigame_skybattle_start: 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}