From 8fda59fe61ab8e32195de5fd3adb9650fcfd6b55 Mon Sep 17 00:00:00 2001 From: MasterCake Date: Tue, 4 May 2021 03:15:23 +0200 Subject: [PATCH] remove chat formatting when receiving a message from a telegram group --- src/main/java/de/Linus122/TelegramChat/TelegramChat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/Linus122/TelegramChat/TelegramChat.java b/src/main/java/de/Linus122/TelegramChat/TelegramChat.java index 4e52570..9584067 100755 --- a/src/main/java/de/Linus122/TelegramChat/TelegramChat.java +++ b/src/main/java/de/Linus122/TelegramChat/TelegramChat.java @@ -145,7 +145,7 @@ public class TelegramChat extends JavaPlugin implements Listener { recievers.remove((Object) sender); String msgF = Utils.formatMSG("general-message-to-mc", op.getName(), msg)[0]; for (int id : recievers) { - telegramHook.sendMsg(id, msgF); + telegramHook.sendMsg(id, msgF.replaceAll("§.", "")); } Bukkit.broadcastMessage(msgF.replace("&", "§"));