mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-28 12:07:38 +01:00
Fix plugin startup
This commit is contained in:
parent
d03d85b52b
commit
b9f293f8a7
@ -205,17 +205,17 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
|
|||||||
Economy.setEss(this);
|
Economy.setEss(this);
|
||||||
execTimer.mark("RegHandler");
|
execTimer.mark("RegHandler");
|
||||||
|
|
||||||
|
try {
|
||||||
|
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() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
|
||||||
metrics = new MetricsLite(Essentials.this);
|
|
||||||
metrics.start();
|
metrics.start();
|
||||||
} catch (IOException e) {
|
|
||||||
// Failed to submit the stats :-(
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}.runTaskAsynchronously(this);
|
}.runTaskAsynchronously(this);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user