mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-05 10:20:23 +01:00
Fixes #373
This commit is contained in:
parent
9aa5a01fe5
commit
feff7de746
@ -157,9 +157,16 @@ public class BungeeInformationManager extends InformationManager {
|
||||
* @throws IllegalStateException If no Bukkit servers are online.
|
||||
*/
|
||||
private ServerInfo getInspectRequestProcessorServer(UUID uuid) {
|
||||
if (bukkitServers.isEmpty()) {
|
||||
try {
|
||||
refreshBukkitServerMap();
|
||||
} catch (SQLException e) {
|
||||
Log.toLog(this.getClass().getName(), e);
|
||||
}
|
||||
if (bukkitServers.isEmpty()) {
|
||||
throw new IllegalStateException("No Bukkit Servers.");
|
||||
}
|
||||
}
|
||||
|
||||
Collection<ServerInfo> onlineServers = serverInfoManager.getOnlineBukkitServers();
|
||||
if (plugin.getProxy().getPlayer(uuid) != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user