Anorak_1 2022-11-11 15:00:29 +01:00
parent 464017ef70
commit 194d3e6130
1 changed files with 6 additions and 0 deletions

View File

@ -243,10 +243,16 @@ command /skybattle_listspawners <number>:
command /spawnteam <number> <number>:
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