Allow rejoining in MPS

This commit is contained in:
Sam 2018-08-21 16:15:02 +01:00 committed by Alexander Meech
parent 69fe7ef777
commit 54f2c29254

View File

@ -127,8 +127,12 @@ public class RejoinModule extends Module
team.RemovePlayer(player);
// For MPS, allow them to rejoin but don't bother sending them the message
if (!getGame().getArcadeManager().GetGameHostManager().isPrivateServer())
{
_manager.saveRejoinData(player, getGame().GetType().getGameId());
}
}
@EventHandler(priority = EventPriority.MONITOR)
public void playerQuitMonitor(PlayerQuitEvent event)
@ -200,7 +204,7 @@ public class RejoinModule extends Module
private boolean isEnabled()
{
return !getGame().getArcadeManager().GetGameHostManager().isPrivateServer() && getGame().InProgress() && !getGame().QuitOut;
return getGame().InProgress() && !getGame().QuitOut;
}
public class PlayerGameInfo