mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
User info - Disconnect info is now shown in the Connection column.
This commit is contained in:
parent
f12a616243
commit
aec56554b8
1 changed files with 6 additions and 7 deletions
|
@ -367,10 +367,6 @@ public class User {
|
|||
public String getGameInfo() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
String disconnectInfo = "";
|
||||
if (!isConnected()) {
|
||||
disconnectInfo = new StringBuilder(" (discon. ").append(getDisconnectDuration()).append(")").toString();
|
||||
}
|
||||
int draft = 0, match = 0, sideboard = 0, tournament = 0, construct = 0;
|
||||
|
||||
for (Map.Entry<UUID, Table> tableEntry : tables.entrySet()) {
|
||||
|
@ -395,7 +391,7 @@ public class User {
|
|||
}
|
||||
|
||||
if (!isConnected()) {
|
||||
tournamentPlayer.setDisconnectInfo(disconnectInfo);
|
||||
tournamentPlayer.setDisconnectInfo(" (discon. "+ getDisconnectDuration() + ")");
|
||||
} else {
|
||||
tournamentPlayer.setDisconnectInfo("");
|
||||
}
|
||||
|
@ -438,7 +434,6 @@ public class User {
|
|||
if (watchedGames.size() > 0) {
|
||||
sb.append("Watch: ").append(watchedGames.size()).append(" ");
|
||||
}
|
||||
sb.append(disconnectInfo);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
@ -463,7 +458,11 @@ public class User {
|
|||
}
|
||||
|
||||
public String getPingInfo() {
|
||||
if (isConnected()) {
|
||||
return pingInfo;
|
||||
} else {
|
||||
return " (discon. "+ getDisconnectDuration() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue