Compare commits

...
Author SHA1 Message Date
Andrew Wong fbb66b8c5b Enforce min version to 1.21 2024-06-22 01:30:06 +10:00
Andrew Wong 34f7234138 Compile against 1.21, bump version to 2.9.1-SNAPSHOT 2024-06-22 01:27:28 +10:00
5 changed files with 6 additions and 6 deletions

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ tasks {
// Configure the Minecraft version for our task.
// This is the only required configuration besides applying the plugin.
// Your plugin's jar (or shadowJar if present) will be used automatically.
minecraftVersion("1.20.6")
minecraftVersion("1.21")
downloadPlugins {
github("EssentialsX", "essentials", "2.20.1", "EssentialsX-2.20.1.jar")
@@ -183,8 +183,8 @@ public final class AreaShop extends JavaPlugin implements AreaShopApi {
// Setup NMS Impl
Version currentServerVersion = VersionUtil.parseMinecraftVersion(Bukkit.getBukkitVersion());
if (currentServerVersion.versionData().isOlderThan(VersionUtil.MC_1_20_6)) {
error("Unsupported minecraft version: " + currentServerVersion + "! Minimum is 1.20.6");
if (currentServerVersion.versionData().isOlderThan(VersionUtil.MC_1_21)) {
error("Unsupported minecraft version: " + currentServerVersion + "! Minimum is 1.21");
shutdownOnError();
return;
}
@@ -5,7 +5,7 @@ import java.util.StringJoiner;
public class VersionUtil {
public static final VersionData MC_1_20_6 = new VersionData(1, 20, 6);
public static final VersionData MC_1_21 = new VersionData(1, 21);
@Nonnull
public static String padTrailingZero(@Nonnull String minecraftVersion) {
+1 -1
View File
@@ -12,7 +12,7 @@ plugins {
}
group = "me.wiefferink"
version = "2.9.0-SNAPSHOT"
version = "2.9.1-SNAPSHOT"
val targetJavaVersion = 21
val encoding = Charsets.UTF_8
+1 -1
View File
@@ -1,6 +1,6 @@
[versions]
# Platforms
minecraft = "1.20.6-R0.1-SNAPSHOT"
minecraft = "1.21-R0.1-SNAPSHOT"
# Minecraft Plugins
worldedit = "7.3.3"