added isCancelled() method
This commit is contained in:
parent
2a4273afe1
commit
44725de1f5
@ -108,8 +108,9 @@ public class Telegram {
|
|||||||
for (TelegramActionListener actionListener : listeners) {
|
for (TelegramActionListener actionListener : listeners) {
|
||||||
actionListener.onSendToMinecraft(chatMsg);
|
actionListener.onSendToMinecraft(chatMsg);
|
||||||
}
|
}
|
||||||
|
if(!chatMsg.isCancelled()){
|
||||||
Main.sendToMC(chatMsg);
|
Main.sendToMC(chatMsg);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.sendMsg(chat.getId(), Utils.formatMSG("need-to-link")[0]);
|
this.sendMsg(chat.getId(), Utils.formatMSG("need-to-link")[0]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user