mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-12 06:41:50 +01:00
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:
parent
d203b2e9bb
commit
a84b470be5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user