remove chat formatting when receiving a message from a telegram group
This commit is contained in:
parent
aa7fe42b83
commit
8fda59fe61
@ -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("&", "§"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user