diff --git a/pom.xml b/pom.xml
index b0df95c..ae3d562 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,13 +6,20 @@
com.jamesdpeters.chests
ChestsPlusPlus
- 1.15 v1.3
+ 1.0-SNAPSHOT
8
8
+
+ scm:git:git@github.com:JamesPeters98/ChestsPlusPlus.git
+ scm:git:git@github.com:JamesPeters98/ChestsPlusPlus.git
+ https://github.com/JamesPeters98/ChestsPlusPlus
+ @{project.version}
+
+
spigotmc-repo
@@ -144,6 +151,12 @@
+
+
+ org.apache.maven.plugins
+ maven-release-plugin
+ 3.0.0-M1
+
diff --git a/release.properties b/release.properties
new file mode 100644
index 0000000..a332c87
--- /dev/null
+++ b/release.properties
@@ -0,0 +1,21 @@
+#release configuration
+#Mon Apr 27 14:24:53 BST 2020
+scm.commentPrefix=[maven-release-plugin]
+project.scm.com.jamesdpeters.chests\:ChestsPlusPlus.url=https\://github.com/JamesPeters98/ChestsPlusPlus
+exec.pomFileName=pom.xml
+pushChanges=true
+releaseStrategyId=default
+remoteTagging=true
+scm.branchCommitComment=@{prefix} prepare branch @{releaseLabel}
+projectVersionPolicyId=default
+scm.url=scm\:git\:git@github.com\:JamesPeters98/ChestsPlusPlus.git
+scm.tagNameFormat=@{project.artifactId}-@{project.version}
+preparationGoals=clean verify
+scm.releaseCommitComment=@{prefix} prepare release @{releaseLabel}
+exec.snapshotReleasePluginAllowed=false
+project.scm.com.jamesdpeters.chests\:ChestsPlusPlus.developerConnection=scm\:git\:git@github.com\:JamesPeters98/ChestsPlusPlus.git
+project.scm.com.jamesdpeters.chests\:ChestsPlusPlus.tag=@{project.version}
+scm.developmentCommitComment=@{prefix} prepare for next development iteration
+scm.rollbackCommitComment=@{prefix} rollback the release of @{releaseLabel}
+project.scm.com.jamesdpeters.chests\:ChestsPlusPlus.connection=scm\:git\:git@github.com\:JamesPeters98/ChestsPlusPlus.git
+completedPhase=check-poms
diff --git a/src/main/java/com/jamesdpeters/minecraft/chests/ChestsPlusPlus.java b/src/main/java/com/jamesdpeters/minecraft/chests/ChestsPlusPlus.java
index eabcf11..9ef7e4b 100644
--- a/src/main/java/com/jamesdpeters/minecraft/chests/ChestsPlusPlus.java
+++ b/src/main/java/com/jamesdpeters/minecraft/chests/ChestsPlusPlus.java
@@ -51,6 +51,7 @@ public class ChestsPlusPlus extends JavaPlugin {
ConfigurationSerialization.registerClass(InventoryStorage.class, "InventoryStorage");
}
+ @SuppressWarnings("ConstantConditions")
@Override
public void onEnable() {
int pluginId = 7166;
@@ -70,7 +71,10 @@ public class ChestsPlusPlus extends JavaPlugin {
INVENTORY_MANAGER = new InventoryManager(this);
INVENTORY_MANAGER.init();
- if(Settings.isUpdateCheckEnabled()) {
+ boolean isDev = BuildConstants.VERSION.contains("DEV");
+ if(isDev) getLogger().warning("You are currently running a Dev build - update checker disabled! Build: "+BuildConstants.VERSION);
+
+ if(Settings.isUpdateCheckEnabled() && !isDev) {
String SPIGOT_URL = "https://www.spigotmc.org/resources/chests-chest-linking-hopper-filtering-remote-chests-menus.71355/";
UpdateCheck updateChecker = UpdateCheck
.of(this)