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

@ -163,8 +163,9 @@ public class BukkitMain extends JavaPlugin implements Listener, IPlotMain {
}
@Override
public String getPluginVersion() {
return getDescription().getVersion();
public int[] getPluginVersion() {
final String[] split = getDescription().getVersion().split("\\.");
return new int[] { Integer.parseInt(split[0]), Integer.parseInt(split[1]), Integer.parseInt(split[2]) };
}
@Override