added isCancelled() method

This commit is contained in:
mastercake10 2018-05-20 14:34:46 +02:00
parent 2a4273afe1
commit 44725de1f5
1 changed files with 3 additions and 2 deletions

View File

@ -108,8 +108,9 @@ public class Telegram {
for (TelegramActionListener actionListener : listeners) {
actionListener.onSendToMinecraft(chatMsg);
}
Main.sendToMC(chatMsg);
if(!chatMsg.isCancelled()){
Main.sendToMC(chatMsg);
}
} else {
this.sendMsg(chat.getId(), Utils.formatMSG("need-to-link")[0]);
}