+ Os.debug("Spades: onMessage - " + msg.msg);
+ if (msg.type != Message.Type.PRIVMSG)
+ return;
+ if (!msg.from.equals(this.admin))
+ return;
+
+ String txt = msg.txt;
+ if (txt.startsWith("You have: ")) {
+ this.cards.hand = Spades.getCards(txt, "You have: (.*)");
+ this.cards.requestRender();
+ }
+ if (txt.matches("turn!")) {
+ this.cards.pile = Spades.getCards(txt, ".*turn! (.*)");
+ this.cards.requestRender();
+ }