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 {