forked from External/mage
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
|
|
@ -117,11 +117,12 @@ public enum GameManager {
|
|||
}
|
||||
}
|
||||
|
||||
public void watchGame(UUID gameId, UUID userId) {
|
||||
public boolean watchGame(UUID gameId, UUID userId) {
|
||||
GameController gameController = gameControllers.get(gameId);
|
||||
if (gameController != null) {
|
||||
gameController.watch(userId);
|
||||
return gameController.watch(userId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void stopWatching(UUID gameId, UUID userId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue