forked from External/mage
[load] one place server ping
This commit is contained in:
parent
e62f06cc54
commit
a746ca680b
8 changed files with 61 additions and 8 deletions
|
|
@ -177,6 +177,10 @@ public class User {
|
|||
lastActivity = new Date();
|
||||
GameManager.getInstance().sendPlayerInteger(gameId, userId, data);
|
||||
}
|
||||
|
||||
public void updateLastActivity() {
|
||||
lastActivity = new Date();
|
||||
}
|
||||
|
||||
public boolean isExpired(Date expired) {
|
||||
return /*userState == UserState.Disconnected && */ lastActivity.before(expired);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue