The new spec mode seems to be working great, special thanks to
@Galexrt.
- Added a new location: SPEC_SPAWN
- /wizards setLocation <arena> SPEC_SPAWN
- It will set the spectator spawn location.
- API Changes:
- GameEndEvent now also triggers when the game is cancelled, you can check if the game was cancelled by using event.wasCancelled(); <- True when game is shutdown by using /wizards stop or not enough players, false otherwise.
- For shutdown, the event is fired right before players are removed from the game so you should still be able to access everything in the game.
To change an arena with SPEC_SPAWN, use the edit command:
- /wizards edit <arena>
- /wizards setLocation <arena> SPEC_SPAWN
- /wizards finish <arena>
And you should be good to go.
If this location is not set the Spectator will spawn on a team's spawn.