Getting information about connected players in Mage Client (without gui part at the moment, only logging to console).

This commit is contained in:
magenoxx 2011-05-13 20:25:46 +04:00
parent f55e3a88dd
commit 54adc043ec
5 changed files with 47 additions and 1 deletions

View file

@ -322,6 +322,18 @@ public class Session {
}
}
public Collection<String> getConnectedPlayers(UUID roomId) throws MageRemoteException {
try {
return server.getConnectedPlayers(roomId);
} catch (RemoteException ex) {
handleRemoteException(ex);
throw new MageRemoteException();
} catch (MageException ex) {
handleMageException(ex);
throw new MageRemoteException();
}
}
public TournamentView getTournament(UUID tournamentId) throws MageRemoteException {
try {
return server.getTournament(tournamentId);