mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-26 08:29:44 +00:00
Fix xmpp format stripping
This commit is contained in:
parent
93980629d3
commit
071254ed8d
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import com.earth2me.essentials.Console;
|
||||||
import com.earth2me.essentials.EssentialsConf;
|
import com.earth2me.essentials.EssentialsConf;
|
||||||
import com.earth2me.essentials.IConf;
|
import com.earth2me.essentials.IConf;
|
||||||
import com.earth2me.essentials.IUser;
|
import com.earth2me.essentials.IUser;
|
||||||
|
import com.earth2me.essentials.Util;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.logging.Handler;
|
import java.util.logging.Handler;
|
||||||
|
@ -61,7 +62,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
|
||||||
disconnect();
|
disconnect();
|
||||||
connect();
|
connect();
|
||||||
}
|
}
|
||||||
chat.sendMessage(message.replaceAll("§[0-9a-f]", ""));
|
chat.sendMessage(Util.stripFormat(message));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue