mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b51d659ff9
1 changed files with 2 additions and 2 deletions
|
@ -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])};
|
||||
|
|
Loading…
Reference in a new issue