Broaden throwable for misbehaving metrics plugins (#1078)

Fixes #1078
This commit is contained in:
Dan Mulloy 2021-02-03 09:39:04 -05:00
parent 8f7b530613
commit 765fd9e987
No known key found for this signature in database
GPG Key ID: 2B62F7DACFF133E8

View File

@ -253,9 +253,9 @@ public class Metrics {
for (RegisteredServiceProvider<?> provider : Bukkit.getServicesManager().getRegistrations(service)) {
try {
pluginData.add(provider.getService().getMethod("getPluginData").invoke(provider.getProvider()));
} catch (Exception ignored) { }
} catch (Throwable ignored) { }
}
} catch (Exception ignored) { }
} catch (Throwable ignored) { }
}
data.put("plugins", pluginData);