Allow rejoining in MPS
This commit is contained in:
parent
69fe7ef777
commit
54f2c29254
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user