diff --git a/pom.xml b/pom.xml index 18dbea5..e376f2e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - + com.dre brewery 1.1.1 Brewery - + src - + @@ -23,7 +24,7 @@ - + maven-compiler-plugin @@ -33,10 +34,30 @@ 1.7 + + org.apache.maven.plugins + maven-shade-plugin + 1.5 + + + package + + shade + + + + + org.mcstats + + + + + + - - + + bukkit-repo http://repo.bukkit.org/content/groups/public/ @@ -45,7 +66,7 @@ always - + sk89q-repo http://maven.sk89q.com/artifactory/repo/ @@ -54,7 +75,7 @@ always - + dre-repo http://server.die-reiche-erethons.com/maven2 @@ -63,9 +84,14 @@ always + + + Plugin Metrics + http://repo.mcstats.org/content/repositories/public + - - + + org.bukkit @@ -73,7 +99,7 @@ 1.7.2-R0.3 provided - + com.sk89q worldguard @@ -81,7 +107,7 @@ compile jar - + com.dre managerxl @@ -89,5 +115,12 @@ compile jar + + + org.mcstats + metrics + R6 + compile + diff --git a/src/com/dre/brewery/P.java b/src/com/dre/brewery/P.java index bacd614..ddc0651 100644 --- a/src/com/dre/brewery/P.java +++ b/src/com/dre/brewery/P.java @@ -13,7 +13,6 @@ import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.ConfigurationSection; import org.apache.commons.lang.math.NumberUtils; - import org.bukkit.event.HandlerList; import org.bukkit.Bukkit; import org.bukkit.World; @@ -22,6 +21,7 @@ import org.bukkit.command.CommandSender; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.block.Block; +import org.mcstats.Metrics; import com.dre.brewery.listeners.*; @@ -49,7 +49,10 @@ public class P extends JavaPlugin { readConfig(); readData(); - + + // Setup Metrics + setupMetrics(); + // Load LanguageReader languageReader = new LanguageReader(new File(p.getDataFolder(), "languages/" + language + ".yml")); @@ -102,7 +105,15 @@ public class P extends JavaPlugin { this.log(this.getDescription().getName() + " disabled!"); } - + + public void setupMetrics() { + try { + Metrics metrics = new Metrics(this); + metrics.start(); + } catch (IOException e) { + } + } + public void reload(CommandSender sender) { // clear all existent config Data BIngredients.possibleIngredients.clear();