From 3c82dc337abb3f4cd308ceb22fb9d79e93d4c3c1 Mon Sep 17 00:00:00 2001 From: Intelli Date: Mon, 26 Jul 2021 17:56:30 -0600 Subject: [PATCH] Simplified regex when parsing server version --- src/main/java/net/coreprotect/CoreProtect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/coreprotect/CoreProtect.java b/src/main/java/net/coreprotect/CoreProtect.java index aa778ef..b9c1414 100755 --- a/src/main/java/net/coreprotect/CoreProtect.java +++ b/src/main/java/net/coreprotect/CoreProtect.java @@ -127,7 +127,7 @@ public final class CoreProtect extends JavaPlugin { private static boolean performVersionChecks() { try { - String[] bukkitVersion = Bukkit.getServer().getBukkitVersion().split("-|\\."); + String[] bukkitVersion = Bukkit.getServer().getBukkitVersion().split("[-.]"); if (Util.newVersion(bukkitVersion[0] + "." + bukkitVersion[1], ConfigHandler.SPIGOT_VERSION)) { Chat.console(Phrase.build(Phrase.VERSION_REQUIRED, "Spigot", ConfigHandler.SPIGOT_VERSION)); return false;