mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
XMPP: reconnect to server, if connection is broken.
This commit is contained in:
parent
b9fc6a0b2b
commit
8185b05b5d
@ -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 New Issue
Block a user