diff --git a/bungee.yml b/bungee.yml index aa5b32f..a3da0d3 100644 --- a/bungee.yml +++ b/bungee.yml @@ -1,4 +1,4 @@ name: AuxProtectBungee main: dev.heliosares.auxprotect.bungee.AuxProtectBungee -version: 1.1.1 +version: 1.1.2-pre1 author: Heliosares \ No newline at end of file diff --git a/plugin.yml b/plugin.yml index 4e81ba1..e6420d6 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,5 +1,5 @@ name: AuxProtect -version: 1.1.1 +version: 1.1.2-pre1 main: dev.heliosares.auxprotect.AuxProtect description: A plugin designed to supplement CoreProtect in a few ways. api-version: 1.13 diff --git a/pom.xml b/pom.xml index d5b5bb3..2dd5a18 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 AuxProtect AuxProtect - 1.1.1 + 1.1.2-pre1 AuxProtect ${project.artifactId}-${project.version} diff --git a/src/dev/heliosares/auxprotect/AuxProtect.java b/src/dev/heliosares/auxprotect/AuxProtect.java index 078885e..8621d89 100644 --- a/src/dev/heliosares/auxprotect/AuxProtect.java +++ b/src/dev/heliosares/auxprotect/AuxProtect.java @@ -85,8 +85,9 @@ public class AuxProtect extends JavaPlugin implements IAuxProtect { data.getData().set("lastloaded", System.currentTimeMillis()); data.save(); + debug("Parsing: " + Bukkit.getBukkitVersion()); try { - SERVER_VERSION = Integer.parseInt(Bukkit.getBukkitVersion().split("\\.")[1]); + SERVER_VERSION = Integer.parseInt(Bukkit.getBukkitVersion().split("[\\.-]")[1]); } catch (Exception e) { warning("Failed to parse version string: \"" + Bukkit.getBukkitVersion() + "\". Defaulting to 1.16"); SERVER_VERSION = 16;