mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
XMPP: reconnect to server, if connection is broken.
This commit is contained in:
parent
b9fc6a0b2b
commit
8185b05b5d
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,10 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
|
|||
}
|
||||
if (chat != null)
|
||||
{
|
||||
if (!connection.isConnected()) {
|
||||
disconnect();
|
||||
connect();
|
||||
}
|
||||
chat.sendMessage(message.replaceAll("§[0-9a-f]", ""));
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue