Allow rejoining in MPS
This commit is contained in:
parent
69fe7ef777
commit
54f2c29254
@ -127,7 +127,11 @@ public class RejoinModule extends Module
|
|||||||
|
|
||||||
team.RemovePlayer(player);
|
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)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
@ -200,7 +204,7 @@ public class RejoinModule extends Module
|
|||||||
|
|
||||||
private boolean isEnabled()
|
private boolean isEnabled()
|
||||||
{
|
{
|
||||||
return !getGame().getArcadeManager().GetGameHostManager().isPrivateServer() && getGame().InProgress() && !getGame().QuitOut;
|
return getGame().InProgress() && !getGame().QuitOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PlayerGameInfo
|
public class PlayerGameInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user