mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Sorry for the versioning confusion
This commit is contained in:
parent
b1fa258688
commit
a8fd6d00d0
2 changed files with 6 additions and 2 deletions
|
@ -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])};
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ buildscript {
|
|||
}
|
||||
|
||||
group = 'com.intellectualcrafters'
|
||||
version = '3.3.3'
|
||||
version = '3.3.3-SNAPSHOT'
|
||||
description = """PlotSquared"""
|
||||
|
||||
subprojects {
|
||||
|
|
Loading…
Reference in a new issue