mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +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);
|
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…
Add table
Add a link
Reference in a new issue