forked from External/mage
separated User from Session - will be need for reconnecting
This commit is contained in:
parent
b55dd5d787
commit
bdd8a2a28e
6 changed files with 46 additions and 29 deletions
|
|
@ -219,7 +219,7 @@ public class MageServerImpl implements MageServer {
|
|||
try {
|
||||
List<String> players = new ArrayList<String>();
|
||||
for (Session session : SessionManager.getInstance().getSessions().values()) {
|
||||
players.add(session.getUsername());
|
||||
players.add(session.getUser().getName());
|
||||
}
|
||||
return players;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue