public void Event_PlayerLeft(SSPlayer p) { // Module isnt on if (m_Games == null) { return; } Classes.BaseGame game = getGame(p.Frequency); if (game != null) { game.player_Remove(p); } }
public void Event_PlayerFreqChange(SSPlayer p) { // Module isnt on if (m_Games == null) { return; } Classes.BaseGame joinGame = getGame(p.Frequency); Classes.BaseGame leaveGame = getGame(p.OldFrequency); if (leaveGame != null && leaveGame.gameStatus() != Misc.BaseGameStatus.NotStarted) { leaveGame.player_Remove(p); } if (joinGame != null && joinGame.gameStatus() != Misc.BaseGameStatus.NotStarted && !joinGame.lockedStatus()) { joinGame.player_Join(p); } }