Message of the Day.

This commit is contained in:
magenoxx 2011-08-11 12:45:59 +04:00
parent 60511e4310
commit 6c144b5fc2
7 changed files with 265 additions and 86 deletions

View file

@ -46,6 +46,7 @@ import mage.interfaces.MageClient;
import mage.interfaces.MageServer;
import mage.interfaces.ServerState;
import mage.interfaces.callback.ClientCallback;
import mage.utils.CompressUtil;
import mage.view.DraftPickView;
import mage.view.GameTypeView;
import mage.view.TableView;
@ -838,6 +839,18 @@ public class Session {
}
return null;
}
public List<String> getServerMessages() {
try {
if (isConnected())
return (List<String>) CompressUtil.decompress(server.getServerMessagesCompressed(sessionId));
} catch (MageException ex) {
handleMageException(ex);
} catch (Throwable t) {
handleThrowable(t);
}
return null;
}
public boolean disconnectUser(String userSessionId) {
try {