mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Sorry for the versioning confusion
This commit is contained in:
parent
b1fa258688
commit
a8fd6d00d0
@ -160,7 +160,11 @@ public class BukkitMain extends JavaPlugin implements Listener, IPlotMain {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int[] getPluginVersion() {
|
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])};
|
return new int[]{Integer.parseInt(split[0]), Integer.parseInt(split[1]), Integer.parseInt(split[2])};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.intellectualcrafters'
|
group = 'com.intellectualcrafters'
|
||||||
version = '3.3.3'
|
version = '3.3.3-SNAPSHOT'
|
||||||
description = """PlotSquared"""
|
description = """PlotSquared"""
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
|
Loading…
Reference in New Issue
Block a user