Browse Source

remove chat formatting when receiving a message from a telegram group

MasterCake 3 years ago
parent
commit
8fda59fe61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/de/Linus122/TelegramChat/TelegramChat.java

+ 1 - 1
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("&", "§"));