forked from External/mage
Add client-side user ignore list
This commit adds a client-side per-server ignore list. * Whispers and talk from an ignored user is hidden * Ignored users cannot join your tables * Ignored users tables are hidden
This commit is contained in:
parent
19fec8ee2a
commit
f68460603a
22 changed files with 443 additions and 18 deletions
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import mage.cards.decks.DeckCardLists;
|
||||
import mage.client.chat.LocalCommands;
|
||||
import mage.constants.ManaType;
|
||||
import mage.constants.PlayerAction;
|
||||
import mage.game.match.MatchOptions;
|
||||
|
|
@ -306,7 +307,11 @@ public class SessionHandler {
|
|||
}
|
||||
|
||||
public static boolean sendChatMessage(UUID chatId, String text) {
|
||||
return session.sendChatMessage(chatId, text);
|
||||
if (!LocalCommands.handleLocalCommands(chatId, text)) {
|
||||
return session.sendChatMessage(chatId, text);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean sendPlayerManaType(UUID gameId, UUID playerId, ManaType data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue