mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-23 02:55:11 +01:00
Added PluginMetrics
This commit is contained in:
parent
38d59884a2
commit
f8cd1348a1
@ -1,5 +1,6 @@
|
|||||||
package cz.boosik.boosCooldown;
|
package cz.boosik.boosCooldown;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import net.milkbowl.vault.Vault;
|
import net.milkbowl.vault.Vault;
|
||||||
@ -12,6 +13,7 @@ import org.bukkit.plugin.PluginDescriptionFile;
|
|||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
import org.mcstats.MetricsLite;
|
||||||
|
|
||||||
import util.boosChat;
|
import util.boosChat;
|
||||||
|
|
||||||
@ -39,6 +41,12 @@ public class boosCoolDown extends JavaPlugin {
|
|||||||
if (boosConfigManager.getClearOnRestart()) {
|
if (boosConfigManager.getClearOnRestart()) {
|
||||||
boosCoolDownManager.clear();
|
boosCoolDownManager.clear();
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
MetricsLite metrics = new MetricsLite(this);
|
||||||
|
metrics.start();
|
||||||
|
} catch (IOException e) {
|
||||||
|
// Failed to submit the stats :-(
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user