Automatically drop unique_alias for MySQL

This commit is contained in:
Jesse Boyd
2016-03-18 03:05:36 +11:00
parent 3921fdfc3f
commit 9e32ce9885
7 changed files with 49 additions and 27 deletions

View File

@ -164,11 +164,11 @@ public class SpongeMain implements IPlotMain {
}
@Override
public String getPluginVersion() {
public int[] getPluginVersion() {
PluginContainer plugin = game.getPluginManager().fromInstance(this).get();
String version = plugin.getVersion().get();
log("Checking plugin version: PlotSquared: ");
return version;
final String[] split = version.split("\\.");
return new int[] { Integer.parseInt(split[0]), Integer.parseInt(split[1]), (split.length == 3) ? Integer.parseInt(split[2]) : 0 };
}
@Override