diff --git a/pom.xml b/pom.xml
index cecdcdc..ee4e43e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.acrobot.chestshop
chestshop
- 3.7.6
+ 3.7.7
Chest-and-sign shop plugin for Bukkit
@@ -32,6 +32,10 @@
vault-repo
http://ci.herocraftonline.com/plugin/repository/everything
+
+ gravity-repo
+ http://repo.gravitydevelopment.net
+
local_repo
file://${project.basedir}/repo/
@@ -116,6 +120,11 @@
residence
2.6.6.3
+
+ net.gravitydevelopment.updater
+ updater
+ 2.1
+
@@ -142,6 +151,7 @@
org.mcstats.bukkit
+ net.gravitydevelopment.updater
@@ -149,6 +159,10 @@
org.mcstats
com.Acrobot.ChestShop
+
+ net.gravitydevelopment.updater
+ com.Acrobot.ChestShop
+
diff --git a/src/main/java/com/Acrobot/ChestShop/ChestShop.java b/src/main/java/com/Acrobot/ChestShop/ChestShop.java
index 50b79a5..00263eb 100644
--- a/src/main/java/com/Acrobot/ChestShop/ChestShop.java
+++ b/src/main/java/com/Acrobot/ChestShop/ChestShop.java
@@ -38,6 +38,7 @@ import com.Acrobot.ChestShop.Utils.uName;
import com.avaje.ebean.EbeanServer;
import com.lennardf1989.bukkitex.Database;
import com.nijikokun.register.payment.forChestShop.Methods;
+import net.gravitydevelopment.updater.Updater;
import org.bukkit.Bukkit;
import org.bukkit.Server;
import org.bukkit.configuration.file.FileConfiguration;
@@ -121,6 +122,7 @@ public class ChestShop extends JavaPlugin {
getCommand("csGive").setExecutor(new Give());
startStatistics();
+ startUpdater();
}
public static File loadFile(String string) {
@@ -278,6 +280,16 @@ public class ChestShop extends JavaPlugin {
}
}
+ private static final int PROJECT_BUKKITDEV_ID = 31263;
+
+ private void startUpdater() {
+ if (Properties.TURN_OFF_UPDATES) {
+ return;
+ }
+
+ new Updater(this, PROJECT_BUKKITDEV_ID, this.getFile(), Updater.UpdateType.DEFAULT, true);
+ }
+
///////////////////// DATABASE STUFF ////////////////////////////////
private void setupDB() {
loadFile(new File("ebean.properties"));