Skip to content

Commit

Permalink
Bump protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
pop4959 committed Jun 17, 2024
1 parent 213317b commit 23c93f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 23c93f0

Please sign in to comment.