Fixes "No Bukkit Servers were online" by adding a 3 second delay to

connection attempts to servers that rebooted #412
This commit is contained in:
Rsl1122 2017-11-28 11:22:11 +02:00
parent d203b2e9bb
commit a84b470be5

View File

@ -144,7 +144,13 @@ public class BungeeServerInfoManager {
}
Log.info("Received a connection from a Bukkit server..");
if (onlineServers.contains(serverUUID)) {
sendConfigSettings(serverUUID);
RunnableFactory.createNew("BukkitRebootedConnectionTask: " + serverUUID, new AbsRunnable() {
@Override
public void run() {
sendConfigSettings(serverUUID);
this.cancel();
}
}).runTaskLaterAsynchronously(TimeAmount.SECOND.ticks() * 3L);
return true;
}
try {