forked from External/mage
some server optimizations
This commit is contained in:
parent
e97d655bd1
commit
7ab5649132
4 changed files with 44 additions and 35 deletions
|
|
@ -263,11 +263,7 @@ public class MageServerImpl implements MageServer {
|
|||
@Override
|
||||
public List<String> getConnectedPlayers(UUID roomId) throws MageException {
|
||||
try {
|
||||
List<String> players = new ArrayList<String>();
|
||||
for (User user : UserManager.getInstance().getUsers()) {
|
||||
players.add(user.getName());
|
||||
}
|
||||
return players;
|
||||
return GamesRoomManager.getInstance().getRoom(roomId).getPlayers();
|
||||
}
|
||||
catch (Exception ex) {
|
||||
handleException(ex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue