From 6b1298a5e6bb59916c5d90d1cd8c518188dcef57 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 20 May 2016 05:10:46 +1000 Subject: [PATCH] *Fix version check --- Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java | 4 ++-- 1 file changed, 2 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 0ad458e1a..630a91534 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java @@ -152,8 +152,8 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain @Override public int[] getPluginVersion() { String ver = getDescription().getVersion(); - if (ver.contains("-SNAPSHOT")) { - ver = ver.split("-SNAPSHOT")[0]; + if (ver.contains("-")) { + ver = ver.split("-")[0]; } String[] split = ver.split("\\."); return new int[]{Integer.parseInt(split[0]), Integer.parseInt(split[1]), Integer.parseInt(split[2])};