Send players into the training arena only if the game has started
This commit is contained in:
parent
6418a6006f
commit
2fd3c9cc2f
|
@ -166,6 +166,11 @@ public class TrainingGameModule extends Module
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void playerJoin(PlayerJoinEvent event)
|
public void playerJoin(PlayerJoinEvent event)
|
||||||
{
|
{
|
||||||
|
if (!getGame().InProgress())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
if (UtilPlayer.isSpectator(player))
|
if (UtilPlayer.isSpectator(player))
|
||||||
|
|
Loading…
Reference in New Issue