From 78701dee96f7f8d20993c27b57c65ceb94764113 Mon Sep 17 00:00:00 2001 From: Intelli Date: Fri, 8 Aug 2025 15:34:49 -0600 Subject: [PATCH] CoreProtect Community Edition v23.0 release --- README.md | 4 +-- pom.xml | 30 ++++++++++++++----- .../net/coreprotect/config/ConfigHandler.java | 2 +- .../services/VersionCheckService.java | 2 +- 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7e6a30c..17b7720 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ For a detailed description of the plugin, please visit [coreprotect.net](https:/ | CoreProtect Discord: | [discord.gg/b4DZ4jy](https://discord.gg/b4DZ4jy) | | CoreProtect Patreon: | [patreon.com/coreprotect](https://www.patreon.com/coreprotect) | | CoreProtect Documentation: | [docs.coreprotect.net](https://docs.coreprotect.net) | -| Downloads for MC 1.14 - 1.20: | [coreprotect.net/latest](https://coreprotect.net/latest/) | +| Downloads for MC 1.14 - 1.21: | [coreprotect.net/latest](https://coreprotect.net/latest/) | | Downloads for MC 1.8 - 1.12: | [coreprotect.net/legacy](https://coreprotect.net/legacy/) | bStats @@ -41,7 +41,7 @@ Maven net.coreprotect coreprotect - 22.4 + 23.0 provided ``` diff --git a/pom.xml b/pom.xml index 3248caf..a33466c 100755 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 net.coreprotect CoreProtect - 22.4 + 23.0 UTF-8 @@ -73,7 +73,7 @@ **/*.java **/*.c - META-INF/maven/** + META-INF/maven/**/pom.properties META-INF/services/** @@ -126,12 +126,26 @@ - org.apache.maven.plugins - maven-install-plugin - 3.1.1 - - true - + maven-antrun-plugin + 3.1.0 + + + install-validation + install + + + + + + + + + + + run + + + diff --git a/src/main/java/net/coreprotect/config/ConfigHandler.java b/src/main/java/net/coreprotect/config/ConfigHandler.java index c7fd37c..6effac7 100644 --- a/src/main/java/net/coreprotect/config/ConfigHandler.java +++ b/src/main/java/net/coreprotect/config/ConfigHandler.java @@ -47,7 +47,7 @@ public class ConfigHandler extends Queue { public static final String COMMUNITY_EDITION = "Community Edition"; public static final String JAVA_VERSION = "11.0"; public static final String MINECRAFT_VERSION = "1.16"; - public static final String LATEST_VERSION = "1.21.6"; + public static final String LATEST_VERSION = "1.21.8"; public static String path = "plugins/CoreProtect/"; public static String sqlite = "database.db"; public static String host = "127.0.0.1"; diff --git a/src/main/java/net/coreprotect/services/VersionCheckService.java b/src/main/java/net/coreprotect/services/VersionCheckService.java index af55f25..bc3c12f 100644 --- a/src/main/java/net/coreprotect/services/VersionCheckService.java +++ b/src/main/java/net/coreprotect/services/VersionCheckService.java @@ -32,7 +32,7 @@ public class VersionCheckService { return false; } - if (VersionUtils.newVersion(ConfigHandler.LATEST_VERSION, bukkitVersion[0] + "." + bukkitVersion[1] + (bukkitVersion.length > 2 ? "." + bukkitVersion[2] : "")) && VersionUtils.isBranch("master")) { + if (VersionUtils.newVersion(ConfigHandler.LATEST_VERSION, bukkitVersion[0] + "." + bukkitVersion[1] + (bukkitVersion.length > 2 ? "." + bukkitVersion[2] : "")) && VersionUtils.isCommunityEdition()) { Chat.console(Phrase.build(Phrase.VERSION_INCOMPATIBLE, "Minecraft", bukkitVersion[0] + "." + bukkitVersion[1] + (bukkitVersion.length > 2 ? "." + bukkitVersion[2] : ""))); return false; }