remove chat formatting when receiving a message from a telegram group

This commit is contained in:
MasterCake 2021-05-04 03:15:23 +02:00
parent aa7fe42b83
commit 8fda59fe61

View File

@ -145,7 +145,7 @@ public class TelegramChat extends JavaPlugin implements Listener {
recievers.remove((Object) sender); recievers.remove((Object) sender);
String msgF = Utils.formatMSG("general-message-to-mc", op.getName(), msg)[0]; String msgF = Utils.formatMSG("general-message-to-mc", op.getName(), msg)[0];
for (int id : recievers) { for (int id : recievers) {
telegramHook.sendMsg(id, msgF); telegramHook.sendMsg(id, msgF.replaceAll("§.", ""));
} }
Bukkit.broadcastMessage(msgF.replace("&", "§")); Bukkit.broadcastMessage(msgF.replace("&", "§"));