From 90587e56fc139d106390df3cdcdb25d5c746780e Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Fri, 7 Jul 2023 18:38:10 +0200 Subject: [PATCH] Deprecate support for 1.16.5 (#2338) --- .github/ISSUE_TEMPLATE/bug_report.yml | 1 - build.gradle.kts | 2 +- .../java/com/fastasyncworldedit/bukkit/FaweBukkit.java | 8 ++++++++ .../fastasyncworldedit/bukkit/util/MinecraftVersion.java | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 83d9f52d8..8a134b81e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -32,7 +32,6 @@ body: - '1.19.4' - '1.18.2' - '1.17.1' - - '1.16.5' validations: required: true diff --git a/build.gradle.kts b/build.gradle.kts index 781f1fba2..de0d714cc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -83,7 +83,7 @@ allprojects { } applyCommonConfiguration() -val supportedVersions = listOf("1.16.5", "1.17.1", "1.18.2", "1.19.4", "1.20", "1.20.1") +val supportedVersions = listOf("1.17.1", "1.18.2", "1.19.4", "1.20", "1.20.1") tasks { supportedVersions.forEach { diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java index 46bf125c5..2e25c8c56 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java @@ -108,6 +108,14 @@ public class FaweBukkit implements IFawe, Listener { if (version.isEqualOrHigherThan(MinecraftVersion.CAVES_18) && Settings.settings().HISTORY.SMALL_EDITS) { LOGGER.warn("Small-edits enabled (maximum y range of 0 -> 256) with 1.18 world heights. Are you sure?"); } + + if (version.isEqualOrLowerThan(MinecraftVersion.ONE_DOT_SIXTEEN_EOL)) { + LOGGER.warn("You are running Minecraft 1.16.5. This version has been released over two years ago (January 2021)."); + LOGGER.warn("FastAsyncWorldEdit will stop operating on this version in the near future."); + LOGGER.warn("Neither Mojang, nor Spigot or other software vendors support this version anymore." + + "Please update your server to a newer version of Minecraft (1.20+) to continue receiving updates and " + + "support."); + } } @Override diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/util/MinecraftVersion.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/util/MinecraftVersion.java index 08ee52de6..f719d430d 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/util/MinecraftVersion.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/util/MinecraftVersion.java @@ -13,6 +13,7 @@ import java.util.regex.Pattern; public class MinecraftVersion implements Comparable { public static final MinecraftVersion NETHER = new MinecraftVersion(1, 16); + public static final MinecraftVersion ONE_DOT_SIXTEEN_EOL = new MinecraftVersion(1, 16, 5); public static final MinecraftVersion CAVES_17 = new MinecraftVersion(1, 17); public static final MinecraftVersion CAVES_18 = new MinecraftVersion(1, 18); private static MinecraftVersion current = null;