Sorry for the versioning confusion

This commit is contained in:
MattBDev 2016-03-28 23:23:56 -04:00
parent b1fa258688
commit a8fd6d00d0
2 changed files with 6 additions and 2 deletions

View File

@ -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])};
}

View File

@ -10,7 +10,7 @@ buildscript {
}
group = 'com.intellectualcrafters'
version = '3.3.3'
version = '3.3.3-SNAPSHOT'
description = """PlotSquared"""
subprojects {