From 194d3e6130705857d5adf05b12bebfb7bc8be934 Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Fri, 11 Nov 2022 15:00:29 +0100 Subject: [PATCH] hu --- plugins/scripts/scripts/skybattle.sk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index 6a6afed..118b159 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -243,10 +243,16 @@ command /skybattle_listspawners : command /spawnteam : trigger: + set {skybattle::current_arena} to 0 spawnteam(arg-1, arg-2) function spawnteam(team: integer, spawner: integer): loop entries of team "IDList%{_team}%": + broadcast {_team} + broadcast {_spawner} + broadcast {skybattle::current_arena} + if {skybattle::current_arena} is none: + teleport loop-value to location at {skybattle::arena%{skybattle::current_arena}%::spawn_location::%{_spawner}%} teleport loop-value to location at {skybattle::arena%{skybattle::current_arena}%::spawn_location::%{_spawner}%} set loop-value's gamemode to survival