Archiviert
13
0

Use broader catch statement when dealing with other metrics plugins

Fixes #488
Dieser Commit ist enthalten in:
Dan Mulloy 2018-07-09 22:31:03 -04:00
Ursprung 3ccc56fef9
Commit fc76af9d56

Datei anzeigen

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