From a8fd6d00d090622f982cae85e5b7cf0a1b864ccf Mon Sep 17 00:00:00 2001 From: MattBDev Date: Mon, 28 Mar 2016 23:23:56 -0400 Subject: [PATCH] Sorry for the versioning confusion --- Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java | 6 +++++- build.gradle | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java index c5ad9cd46..6dc791341 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java @@ -160,7 +160,11 @@ public class BukkitMain extends JavaPlugin implements Listener, IPlotMain { @Override public int[] getPluginVersion() { - String[] split = getDescription().getVersion().split("\\."); + String version = getDescription().getVersion(); + if (version.contains("-SNAPSHOT")) { + version = version.split("-SNAPSHOT")[0]; + } + String[] split = version.split("\\."); return new int[]{Integer.parseInt(split[0]), Integer.parseInt(split[1]), Integer.parseInt(split[2])}; } diff --git a/build.gradle b/build.gradle index 8bd7a2b13..8ac813bc5 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { } group = 'com.intellectualcrafters' -version = '3.3.3' +version = '3.3.3-SNAPSHOT' description = """PlotSquared""" subprojects {