Added PluginMetrics

This commit is contained in:
Boos 2012-08-21 14:43:41 +02:00
parent 38d59884a2
commit f8cd1348a1

View File

@ -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 :-(
}
} }