mirror of
https://github.com/PaperMC/Waterfall.git
synced 2025-02-11 09:21:36 +01:00
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Do note that OSX natives are now compiled for Apple Silicon, Long Live ARM BungeeCord Changes: 6f70b15e Minecraft 1.20.5 support b30499e2 #3667: Bump org.apache.maven.plugins:maven-jar-plugin from 3.4.0 to 3.4.1 5079181c Minecraft 1.20.5-rc3 support ee02d98c Minecraft 1.20.5-rc2 support c7ff3b8a #3654: Update year in README.md de60af0d #3659: Cleanup command packets for 1.20.5 a9218a7a #3660: Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.3 to 3.2.4 67c65e04 #3658: Minecraft 1.20.5-rc1 support 1be25b6c #3656: Improve online mode support where IP forwarding is disabled 8525b449 Minecraft 1.20.5-pre3 support 1fca510a #3655: Fix 1.20.5-pre1 view distance packet ID 33841852 #3652: Bump org.apache.maven.plugins:maven-jar-plugin from 3.3.0 to 3.4.0 3075d2c1 #3651: Bump io.netty:netty-bom from 4.1.108.Final to 4.1.109.Final bc528d5d Update native libraries 25cf8d68 #3617: Don't go further if connection is disconnected during handshake event 17e23d5c #3628: Convert PostLoginEvent to AsyncEvent and expose target server d6c5197c #3599: Bump com.mysql:mysql-connector-j from 8.2.0 to 8.3.0 dd96f0f8 #3647: Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.2 to 3.2.3 8a9501ff Minecraft 1.20.5-pre1 support
37 lines
2.1 KiB
Diff
37 lines
2.1 KiB
Diff
From 1c5029315edd50653076483bba5e7e406fe07848 Mon Sep 17 00:00:00 2001
|
|
From: Aurora <aurora@relanet.eu>
|
|
Date: Mon, 18 Jul 2022 15:56:05 +0200
|
|
Subject: [PATCH] Add message for outdated clients that don't support secure
|
|
profiles
|
|
|
|
Clients before 1.19 don't support secure profiles, but since secure profiles is one of the first
|
|
things checked those outdated clients didn't get a useful message telling them to update.
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
|
index 6344462c..d58caade 100644
|
|
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
|
@@ -435,6 +435,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|
|
|
if ( BungeeCord.getInstance().config.isEnforceSecureProfile() && getVersion() < ProtocolConstants.MINECRAFT_1_19_3 )
|
|
{
|
|
+ if ( handshake.getProtocolVersion() < ProtocolConstants.MINECRAFT_1_19 ) {disconnect(bungee.getTranslation("secure_profile_unsupported"));} // Waterfall - Tell old clients to update if secure profiles are required
|
|
PlayerPublicKey publicKey = loginRequest.getPublicKey();
|
|
if ( publicKey == null )
|
|
{
|
|
diff --git a/proxy/src/main/resources/messages.properties b/proxy/src/main/resources/messages.properties
|
|
index 149c742f..8d5075f6 100644
|
|
--- a/proxy/src/main/resources/messages.properties
|
|
+++ b/proxy/src/main/resources/messages.properties
|
|
@@ -25,6 +25,7 @@ offline_mode_player=\u00a7cNot authenticated with Minecraft.net
|
|
secure_profile_required=\u00a7cA secure profile is required to join this server.
|
|
secure_profile_expired=\u00a7cSecure profile expired.
|
|
secure_profile_invalid=\u00a7cSecure profile invalid.
|
|
+secure_profile_unsupported=\u00a7cOutdated client, secure profile not supported. Please use 1.19 or newer.
|
|
message_needed=\u00a7cYou must supply a message.
|
|
error_occurred_player=\u00a7cAn error occurred while parsing your message. (Hover for details)
|
|
error_occurred_console=\u00a7cAn error occurred while parsing your message: {0}
|
|
--
|
|
2.44.0
|
|
|