fix: emergency fix discord and other stuff not working because of last commit
This commit is contained in:
@@ -169,11 +169,15 @@ public class Bot extends SessionAdapter {
|
||||
this.whitelist = new WhitelistPlugin(this);
|
||||
this.playersDatabase = new PlayersDatabasePlugin(this);
|
||||
this.ipFilter = new IPFilterPlugin(this);
|
||||
|
||||
for (final Listener listener : listeners) listener.loadedPlugins(this);
|
||||
}
|
||||
|
||||
protected void reconnect () {
|
||||
protected void connect () {
|
||||
for (final Listener listener : listeners) listener.loadedPlugins(this);
|
||||
|
||||
reconnect();
|
||||
}
|
||||
|
||||
private void reconnect () {
|
||||
if (session != null) session = null; // does this do nothing?
|
||||
|
||||
for (final Listener listener : listeners) {
|
||||
|
||||
@@ -141,7 +141,7 @@ public class Main {
|
||||
|
||||
LoggerUtilities.log("Initialized all bots. Now connecting");
|
||||
|
||||
for (final Bot bot : bots) bot.reconnect();
|
||||
for (final Bot bot : bots) bot.connect();
|
||||
} catch (final Exception e) {
|
||||
LoggerUtilities.error(e);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user