This commit is contained in:
boy0001
2015-08-07 11:38:39 +10:00
parent 1f2cf4b9cc
commit d779ca366d
3 changed files with 25 additions and 2 deletions

View File

@ -102,7 +102,7 @@ public class BukkitMain extends JavaPlugin implements Listener, IPlotMain {
final String[] split = Bukkit.getBukkitVersion().split("-")[0].split("\\.");
version[0] = Integer.parseInt(split[0]);
version[1] = Integer.parseInt(split[1]);
if (version.length == 3) {
if (split.length == 3) {
version[2] = Integer.parseInt(split[2]);
}
} catch (Exception e) {