From 23c93f01ad46433721824390576db51b36246138 Mon Sep 17 00:00:00 2001 From: Christopher Bohn Date: Sun, 16 Jun 2024 20:11:58 -0700 Subject: [PATCH] Bump protocol version --- .../src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java | 4 ++-- .../src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fabric/src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java b/fabric/src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java index 4e75ba5..42565fd 100644 --- a/fabric/src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java +++ b/fabric/src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java @@ -23,8 +23,8 @@ public class FreedomChat implements ModInitializer { public void onInitialize() { ServerLifecycleEvents.SERVER_STARTED.register(server -> { this.server = server; - if (!Boolean.getBoolean("im.evan.freedomchat.bypassprotocolcheck") && SharedConstants.getProtocolVersion() != 766) { - logger.warn("This version of FreedomChat only supports protocol version 766 (1.20.6). Please use the appropriate version of FreedomChat for your server"); + if (!Boolean.getBoolean("im.evan.freedomchat.bypassprotocolcheck") && SharedConstants.getProtocolVersion() != 767) { + logger.warn("This version of FreedomChat only supports protocol version 767 (1.21). Please use the appropriate version of FreedomChat for your server"); logger.warn("If you know what you are doing, set the im.evan.freedomchat.bypassprotocolcheck system property to true to bypass this check"); return; } diff --git a/paper/src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java b/paper/src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java index f782540..1a4cf1a 100644 --- a/paper/src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java +++ b/paper/src/main/java/ru/bk/oharass/freedomchat/FreedomChat.java @@ -14,8 +14,8 @@ public class FreedomChat extends JavaPlugin implements Listener { @Override public void onEnable() { - if (!Boolean.getBoolean("im.evan.freedomchat.bypassprotocolcheck") && this.getServer().getUnsafe().getProtocolVersion() != 766) { - getLogger().warning("This version of FreedomChat only supports protocol version 766 (1.20.6). Please use the appropriate version of FreedomChat for your server"); + if (!Boolean.getBoolean("im.evan.freedomchat.bypassprotocolcheck") && this.getServer().getUnsafe().getProtocolVersion() != 767) { + getLogger().warning("This version of FreedomChat only supports protocol version 767 (1.21). Please use the appropriate version of FreedomChat for your server"); getLogger().warning("If you know what you are doing, set the im.evan.freedomchat.bypassprotocolcheck system property to true to bypass this check"); this.getServer().getPluginManager().disablePlugin(this); return;