diff --git a/modules/VirtualPlayers/pom.xml b/modules/VirtualPlayers/pom.xml index 98b085a..258ab3a 100644 --- a/modules/VirtualPlayers/pom.xml +++ b/modules/VirtualPlayers/pom.xml @@ -3,7 +3,7 @@ 4.0.0 mc.alk VirtualPlayers - 1.8.2 + 1.8.3 jar VirtualPlayers http://dev.bukkit.org/bukkit-plugins/virtualplayers2/ @@ -293,6 +293,13 @@ compile true + + mc.alk + BattlePluginUpdater + 2.2.0 + compile + true + junit junit @@ -364,12 +371,17 @@ mc.euro:Version mc.euro:BukkitInterface mc.euro:BukkitAdapter + mc.alk:BattlePluginUpdater mc.alk:VirtualPlayersAPI mc.alk:vp-* org.bstats:bstats-bukkit + + mc.alk.battlepluginupdater + mc.alk.virtualplayers.zlib.updater + mc.euro.version mc.alk.virtualplayers.zlib.version diff --git a/modules/VirtualPlayers/src/main/java/mc/alk/virtualplayers/VirtualPlayers.java b/modules/VirtualPlayers/src/main/java/mc/alk/virtualplayers/VirtualPlayers.java index 8b4b602..8b25a26 100644 --- a/modules/VirtualPlayers/src/main/java/mc/alk/virtualplayers/VirtualPlayers.java +++ b/modules/VirtualPlayers/src/main/java/mc/alk/virtualplayers/VirtualPlayers.java @@ -7,6 +7,7 @@ import java.util.UUID; import java.util.logging.Level; +import mc.alk.battlepluginupdater.GitHubUpdater; import mc.alk.virtualplayers.api.VirtualPlayer; import mc.alk.virtualplayers.api.VirtualPlayerFactory; import mc.alk.virtualplayers.api.VirtualPlayersAPI; @@ -38,6 +39,9 @@ public void onEnable() { getCommand("vdc").setExecutor(new PlayerExecutor(this)); getCommand("virtualplayers").setExecutor(new VPExecutor(this)); + GitHubUpdater updater = new GitHubUpdater(this, "BattlePlugins", getDescription().getName()); + updater.update(); + new Metrics(this); } diff --git a/modules/api/src/main/java/mc/alk/virtualplayers/api/VirtualPlayersAPI.java b/modules/api/src/main/java/mc/alk/virtualplayers/api/VirtualPlayersAPI.java index e62345a..9146079 100644 --- a/modules/api/src/main/java/mc/alk/virtualplayers/api/VirtualPlayersAPI.java +++ b/modules/api/src/main/java/mc/alk/virtualplayers/api/VirtualPlayersAPI.java @@ -16,7 +16,7 @@ public interface VirtualPlayersAPI { /** - * Returns all online players, including api.VirtualPlayers.

+ * Returns all online players, including api.VirtualPlayers. *
      * VirtualPlayers.getOnlinePlayers() :
      * Using this method has an added bonus: It is backwards compatible.
diff --git a/modules/api/src/main/java/mc/alk/virtualplayers/util/InventoryUtil.java b/modules/api/src/main/java/mc/alk/virtualplayers/util/InventoryUtil.java
index e83b371..f654fb5 100644
--- a/modules/api/src/main/java/mc/alk/virtualplayers/util/InventoryUtil.java
+++ b/modules/api/src/main/java/mc/alk/virtualplayers/util/InventoryUtil.java
@@ -659,8 +659,8 @@ public boolean addAllEnchantments(ItemStack is) {
     /**
      * For Serializing an item or printing
      *
-     * @param is
-     * @return
+     * @param is the item stack
+     * @return the item string
      */
     public static String getItemString(ItemStack is) {
         if (is == null) {
diff --git a/modules/api/src/main/java/mc/alk/virtualplayers/util/Util.java b/modules/api/src/main/java/mc/alk/virtualplayers/util/Util.java
index e818cc8..eebfb85 100644
--- a/modules/api/src/main/java/mc/alk/virtualplayers/util/Util.java
+++ b/modules/api/src/main/java/mc/alk/virtualplayers/util/Util.java
@@ -73,11 +73,11 @@ public static boolean removeListener(VPMessageListener listener) {
     }
     
     /**
-     * Uses the location, chunk, & distance calculations. 

+ * Uses the location, chunk, and distance calculations. * - * @param vp - * @param radius - * @return + * @param vp the virtual player + * @param radius the radius + * @return the nearby entities */ public static Collection getNearbyEntities(VirtualPlayer vp, int radius) { Map emap = new HashMap();