added isCancelled() method
This commit is contained in:
parent
2a4273afe1
commit
44725de1f5
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user