forked from External/mage
Getting information about connected players in Mage Client (without gui part at the moment, only logging to console).
This commit is contained in:
parent
f55e3a88dd
commit
54adc043ec
5 changed files with 47 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue