From 99cf297be03c87dc5f81a19e66cd5431333515d2 Mon Sep 17 00:00:00 2001 From: Ryan Barlow <7389646+ryanbarlow97@users.noreply.github.com> Date: Wed, 23 Sep 2026 20:18:43 +0000 Subject: [PATCH] fix: allow startup with an empty build branch --- .../services/VersionCheckService.java | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/main/java/net/tfminecraft/coreprotect/services/VersionCheckService.java b/src/main/java/net/tfminecraft/coreprotect/services/VersionCheckService.java index 2799824..aa95687 100644 --- a/src/main/java/net/tfminecraft/coreprotect/services/VersionCheckService.java +++ b/src/main/java/net/tfminecraft/coreprotect/services/VersionCheckService.java @@ -6,13 +6,11 @@ import net.tfminecraft.coreprotect.config.ConfigHandler; import net.tfminecraft.coreprotect.language.Phrase; import net.tfminecraft.coreprotect.utility.Chat; -import net.tfminecraft.coreprotect.utility.Color; import net.tfminecraft.coreprotect.utility.VersionUtils; import net.tfminecraft.coreprotect.utility.ErrorReporter; /** - * Service responsible for checking compatibility of Minecraft, Java versions, - * and plugin branch validation. + * Service responsible for checking compatibility of Minecraft and Java versions. */ public class VersionCheckService { @@ -54,21 +52,6 @@ public static boolean performVersionChecks() { return false; } - // Patch version validation - if (VersionUtils.newVersion(ConfigHandler.PATCH_VERSION, VersionUtils.getPluginVersion()) && !VersionUtils.isBranch("dev")) { - Chat.console(Phrase.build(Phrase.VERSION_INCOMPATIBLE, "CoreProtect", "v" + VersionUtils.getPluginVersion())); - Chat.sendConsoleMessage(Color.GREY + "[CoreProtect] " + Phrase.build(Phrase.INVALID_BRANCH_2)); - return false; - } - - // Branch validation - if (ConfigHandler.EDITION_BRANCH.length() == 0) { - Chat.sendConsoleMessage(Color.RED + "[CoreProtect] " + Phrase.build(Phrase.INVALID_BRANCH_1)); - Chat.sendConsoleMessage(Color.GREY + "[CoreProtect] " + Phrase.build(Phrase.INVALID_BRANCH_2)); - Chat.sendConsoleMessage(Color.GREY + "[CoreProtect] " + Phrase.build(Phrase.INVALID_BRANCH_3)); - return false; - } - // Store Minecraft server version for later use int major = Integer.parseInt(bukkitVersion[0]); int minor = Integer.parseInt(bukkitVersion[1]);