[ci skip] add deprecation warning

This commit is contained in:
alexcrea 2026-03-25 03:30:50 +01:00
parent e5167971f4
commit 7fbf68dff3
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -77,6 +77,12 @@ public class UpdateHandler {
if (hadUpdate) { if (hadUpdate) {
CustomAnvil.instance.getLogger().info("Updating Done !"); CustomAnvil.instance.getLogger().info("Updating Done !");
} }
if(current.major() == 1 && current.minor() < 21) {
var logger = CustomAnvil.instance.getLogger();
logger.warning("Your are running an old version of minecraft (lower than 1.21)");
logger.warning("Custom Anvil will stop supporting this version on the first of july 2026");
}
} }
private static void finishConfiguration(@Nonnull String newVersion, @Nonnull Set<ConfigHolder> toSave) { private static void finishConfiguration(@Nonnull String newVersion, @Nonnull Set<ConfigHolder> toSave) {