-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make reconnects possible #113
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
@@ -581,8 +581,14 @@ public void onPlayerOfflineEvent(PlayerOfflineEvent event) { | |||
playerGameStateCounters.get(event.getPlayer().getGameState()).decrementAndGet(); | |||
} | |||
|
|||
/** | |||
* Removes player from his current game. It removes player completely by default, if running it does leave the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removes player from their current game ;)
@@ -710,7 +716,7 @@ private void addPlayer(Game game, Player player) { | |||
markDirty(game, DEFAULT_MIN_DELAY, DEFAULT_MAX_DELAY); | |||
} | |||
|
|||
private void removePlayer(Game game, Player player) { | |||
private void removePlayer(Game game, Player player, boolean reconnectPossible) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allowReconnect?
Fixes #112