Fixed: A bug where, if you closed a game, players would remain in it.
Added: Ability to start + end games via command
/tf game <gameID> start
Starts the countdown, and the game will begin once the countdown gets to 0. This bypasses the minimum required players, but there must be atleast 1 player in the game.
You cannot use this on games that have schedulers set up
/tf game <gameID> end
This ends the game at the end of that round. It will announce all those who remain in play as winners.
Ending a game when its in the countdown stage, just stops the countdown, all players remain.
You cannot use this on games that have schedulers set up
/tf game <gameID> end -without
Use the flag “-without” to immediately end the game without any winners.
You cannot use this on games that have schedulers set up
Add this to your messages.yml
Code (Text):
game_force_started: "&aGame &e%game_ID%'s &acountdown has begun!"
game_force_start_error: "&cError trying to start this game. It is already in play"
game_start_scheduler_error: "&cYou cannot manually start a game that has an active scheduler"
game_start_closed_error: "&cError trying to start this game. It is closed. Use /tf game <ID> open"
game_start_empty_error: "&cError trying to start this game. There are no players in this game"
game_force_ended: "&aGame &e%game_ID% &ahas been ended"
game_force_ended_with_winners: "&aGame &e(%game_ID%) &awill end at the end of the round"
game_force_end_error: "&cError trying to end this game. It is not currently in play"
game_end_scheduler_error: "&cYou cannot manually end a game that has an active scheduler"