aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/unapplied/server/0154-Allow-specifying-a-custom-authentication-servers-dow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/unapplied/server/0154-Allow-specifying-a-custom-authentication-servers-dow.patch')
-rw-r--r--patches/unapplied/server/0154-Allow-specifying-a-custom-authentication-servers-dow.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/unapplied/server/0154-Allow-specifying-a-custom-authentication-servers-dow.patch b/patches/unapplied/server/0154-Allow-specifying-a-custom-authentication-servers-dow.patch
new file mode 100644
index 0000000000..8d96eb72e6
--- /dev/null
+++ b/patches/unapplied/server/0154-Allow-specifying-a-custom-authentication-servers-dow.patch
@@ -0,0 +1,20 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: kashike <[email protected]>
+Date: Thu, 17 Aug 2017 16:08:20 -0700
+Subject: [PATCH] Allow specifying a custom "authentication servers down" kick
+ message
+
+
+diff --git a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
+index 6e9e0385881c60c6921b06663869546f7c852804..85f1591d1f87b314d18b4eb46b6388b7c9d57be7 100644
+--- a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
++++ b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
+@@ -259,7 +259,7 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
+ ServerLoginPacketListenerImpl.LOGGER.warn("Authentication servers are down but will let them in anyway!");
+ ServerLoginPacketListenerImpl.this.startClientVerification(ServerLoginPacketListenerImpl.this.createOfflineProfile(s1)); // Spigot
+ } else {
+- ServerLoginPacketListenerImpl.this.disconnect(Component.translatable("multiplayer.disconnect.authservers_down"));
++ ServerLoginPacketListenerImpl.this.disconnect(io.papermc.paper.adventure.PaperAdventure.asVanilla(io.papermc.paper.configuration.GlobalConfiguration.get().messages.kick.authenticationServersDown)); // Paper
+ ServerLoginPacketListenerImpl.LOGGER.error("Couldn't verify username because servers are unavailable");
+ }
+ // CraftBukkit start - catch all exceptions