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
1 changed files with 6 additions and 2 deletions

View File

@ -127,7 +127,11 @@ public class RejoinModule extends Module
team.RemovePlayer(player);
_manager.saveRejoinData(player, getGame().GetType().getGameId());
// 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)
@ -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