forked from External/mage
Added connection speed information per user (milliseconds the ping needs). Some minor changes to server console.
This commit is contained in:
parent
1285df5da3
commit
b98c16f061
20 changed files with 166 additions and 54 deletions
|
|
@ -826,4 +826,17 @@ public class GameController implements GameCallback {
|
|||
}
|
||||
return gameSessions.get(playerId);
|
||||
}
|
||||
|
||||
public String getPlayerNameList() {
|
||||
StringBuilder sb = new StringBuilder(" [");
|
||||
for (UUID playerId: userPlayerMap.values()) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
sb.append(player.getName()).append("(Left=").append(player.hasLeft() ? "Y":"N").append(") ");
|
||||
} else {
|
||||
sb.append("player missing: ").append(playerId).append(" ");
|
||||
}
|
||||
}
|
||||
return sb.append("]").toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue