mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Ban ignored users from watching
This commit bans ignored users from watching games where the creator has them on their ignore list.
This commit is contained in:
parent
62c14a9c24
commit
ad0507e739
8 changed files with 60 additions and 19 deletions
|
|
@ -137,7 +137,7 @@ public interface MageServer {
|
|||
|
||||
void joinGame(UUID gameId, String sessionId) throws MageException;
|
||||
|
||||
void watchGame(UUID gameId, String sessionId) throws MageException;
|
||||
boolean watchGame(UUID gameId, String sessionId) throws MageException;
|
||||
|
||||
void stopWatching(UUID gameId, String sessionId) throws MageException;
|
||||
|
||||
|
|
|
|||
|
|
@ -1016,8 +1016,7 @@ public class SessionImpl implements Session {
|
|||
public boolean watchGame(UUID gameId) {
|
||||
try {
|
||||
if (isConnected()) {
|
||||
server.watchGame(gameId, sessionId);
|
||||
return true;
|
||||
return server.watchGame(gameId, sessionId);
|
||||
}
|
||||
} catch (MageException ex) {
|
||||
handleMageException(ex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue