Put whole block into try-catch (just in case)

This commit is contained in:
vemacs 2015-07-05 09:41:11 -06:00
parent b9f293f8a7
commit 14384f6bfa

View File

@ -207,9 +207,6 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
try { try {
metrics = new MetricsLite(this); metrics = new MetricsLite(this);
} catch (IOException e) {
// Failed to submit the stats :-(
}
if (!metrics.isOptOut()) { if (!metrics.isOptOut()) {
getLogger().info("Starting Metrics. Opt-out using the global PluginMetrics config."); getLogger().info("Starting Metrics. Opt-out using the global PluginMetrics config.");
new BukkitRunnable() { new BukkitRunnable() {
@ -221,6 +218,9 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
} else { } else {
getLogger().info("Metrics disabled per PluginMetrics config."); getLogger().info("Metrics disabled per PluginMetrics config.");
} }
} catch (IOException e) {
// Failed to submit the stats :-(
}
final String timeroutput = execTimer.end(); final String timeroutput = execTimer.end();
if (getSettings().isDebug()) { if (getSettings().isDebug()) {