mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 16:09:44 +00:00
Fix plugin startup
This commit is contained in:
parent
d03d85b52b
commit
b9f293f8a7
1 changed files with 5 additions and 5 deletions
|
@ -205,17 +205,17 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
|
|||
Economy.setEss(this);
|
||||
execTimer.mark("RegHandler");
|
||||
|
||||
try {
|
||||
metrics = new MetricsLite(this);
|
||||
} catch (IOException e) {
|
||||
// Failed to submit the stats :-(
|
||||
}
|
||||
if (!metrics.isOptOut()) {
|
||||
getLogger().info("Starting Metrics. Opt-out using the global PluginMetrics config.");
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
metrics = new MetricsLite(Essentials.this);
|
||||
metrics.start();
|
||||
} catch (IOException e) {
|
||||
// Failed to submit the stats :-(
|
||||
}
|
||||
}
|
||||
}.runTaskAsynchronously(this);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue