From f8cd1348a1a0ed640909f4911ca7e2ac6e72e66d Mon Sep 17 00:00:00 2001 From: Boos Date: Tue, 21 Aug 2012 14:43:41 +0200 Subject: [PATCH] Added PluginMetrics --- src/cz/boosik/boosCooldown/boosCoolDown.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cz/boosik/boosCooldown/boosCoolDown.java b/src/cz/boosik/boosCooldown/boosCoolDown.java index 88b8961..c597ddf 100644 --- a/src/cz/boosik/boosCooldown/boosCoolDown.java +++ b/src/cz/boosik/boosCooldown/boosCoolDown.java @@ -1,5 +1,6 @@ package cz.boosik.boosCooldown; +import java.io.IOException; import java.util.logging.Logger; import net.milkbowl.vault.Vault; @@ -12,6 +13,7 @@ import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.RegisteredServiceProvider; import org.bukkit.plugin.java.JavaPlugin; +import org.mcstats.MetricsLite; import util.boosChat; @@ -39,6 +41,12 @@ public class boosCoolDown extends JavaPlugin { if (boosConfigManager.getClearOnRestart()) { boosCoolDownManager.clear(); } + try { + MetricsLite metrics = new MetricsLite(this); + metrics.start(); + } catch (IOException e) { + // Failed to submit the stats :-( + } }