diff --git a/pom.xml b/pom.xml
index a023750..727c96f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,6 +57,7 @@
+
org.bukkit
bukkit
@@ -64,6 +65,7 @@
jar
compile
+
org.bukkit
craftbukkit
@@ -71,6 +73,7 @@
jar
compile
+
net.milkbowl.vault
Vault
@@ -78,16 +81,33 @@
jar
compile
+
+
+ org.mcstats.bukkit
+ metrics
+ R6
+ compile
+
+
+
bukkit-repo
http://repo.bukkit.org/content/groups/public
+
vault-repo
http://ci.herocraftonline.com/plugin/repository/everything
+
+
+ Plugin Metrics
+ http://repo.mcstats.org/content/repositories/public
+
+
+
diff --git a/src/de/craftinc/gates/Plugin.java b/src/de/craftinc/gates/Plugin.java
index 80b319c..4b1e400 100644
--- a/src/de/craftinc/gates/Plugin.java
+++ b/src/de/craftinc/gates/Plugin.java
@@ -16,6 +16,7 @@
*/
package de.craftinc.gates;
+import java.io.IOException;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -33,6 +34,7 @@ import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;
import de.craftinc.gates.commands.*;
+import org.mcstats.Metrics;
public class Plugin extends JavaPlugin
@@ -123,6 +125,15 @@ public class Plugin extends JavaPlugin
@Override
public void onEnable()
{
+ // Setup Metrics
+ try {
+ Metrics metrics = new Metrics(this);
+ metrics.start();
+ }
+ catch (IOException e) {
+ log("Failed to start metrics!");
+ }
+
// Setup configuration
this.saveDefaultConfig();