From 25d74632c2b05b76093718c8192aa5e3ff57e979 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Mon, 15 Nov 2021 11:00:18 +0100 Subject: [PATCH] Update Bungee version warning --- .../src/main/java/com/viaversion/viaversion/BungeePlugin.java | 2 +- .../viaversion/bungee/handlers/BungeeServerHandler.java | 1 + gradle/libs.versions.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bungee/src/main/java/com/viaversion/viaversion/BungeePlugin.java b/bungee/src/main/java/com/viaversion/viaversion/BungeePlugin.java index 39dda6eeb..9301a8912 100644 --- a/bungee/src/main/java/com/viaversion/viaversion/BungeePlugin.java +++ b/bungee/src/main/java/com/viaversion/viaversion/BungeePlugin.java @@ -56,7 +56,7 @@ public class BungeePlugin extends Plugin implements ViaPlatform, @Override public void onLoad() { try { - ProtocolConstants.class.getField("MINECRAFT_1_17"); + ProtocolConstants.class.getField("MINECRAFT_1_18"); } catch (NoSuchFieldException e) { getLogger().warning(" / \\"); getLogger().warning(" / \\"); diff --git a/bungee/src/main/java/com/viaversion/viaversion/bungee/handlers/BungeeServerHandler.java b/bungee/src/main/java/com/viaversion/viaversion/bungee/handlers/BungeeServerHandler.java index e38bce826..aaae24f88 100644 --- a/bungee/src/main/java/com/viaversion/viaversion/bungee/handlers/BungeeServerHandler.java +++ b/bungee/src/main/java/com/viaversion/viaversion/bungee/handlers/BungeeServerHandler.java @@ -75,6 +75,7 @@ public class BungeeServerHandler implements Listener { entityRewrite = Class.forName("net.md_5.bungee.UserConnection").getDeclaredField("entityRewrite"); entityRewrite.setAccessible(true); } catch (Exception e) { + Via.getPlatform().getLogger().severe("Error initializing BungeeServerHandler, try updating BungeeCord or ViaVersion!"); e.printStackTrace(); } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1199c89ba..15d248634 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -20,7 +20,7 @@ checkerQual = "3.18.0" # Platforms paper = "1.16.5-R0.1-SNAPSHOT" legacyBukkit = "1.8.8-R0.1-SNAPSHOT" -bungee = "1.16-R0.5-SNAPSHOT" +bungee = "1.17-R0.1-SNAPSHOT" sponge = "5.0.0" legacySponge = "4.0.0" velocity = "3.0.0-SNAPSHOT"