Send players into the training arena only if the game has started

This commit is contained in:
cnr 2017-07-14 03:39:41 -07:00
parent 6418a6006f
commit 2fd3c9cc2f
1 changed files with 5 additions and 0 deletions

View File

@ -166,6 +166,11 @@ public class TrainingGameModule extends Module
@EventHandler(priority = EventPriority.MONITOR)
public void playerJoin(PlayerJoinEvent event)
{
if (!getGame().InProgress())
{
return;
}
Player player = event.getPlayer();
if (UtilPlayer.isSpectator(player))