diff options
author | Spottedleaf <[email protected]> | 2023-06-07 22:25:38 -0700 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2023-06-07 22:26:06 -0700 |
commit | 74ad522fc5818b84772c7808a27227f4ac84df38 (patch) | |
tree | e2b6cea9756d5b59a821b76f56777e35e7ea9844 /patches/server/0569-forced-whitelist-use-configurable-kick-message.patch | |
parent | 819facd7c4343f6783d1a4ee84345d5b99ef47ce (diff) | |
download | Paper-74ad522fc5818b84772c7808a27227f4ac84df38.tar.gz Paper-74ad522fc5818b84772c7808a27227f4ac84df38.zip |
Rebase chunk patches
Diffstat (limited to 'patches/server/0569-forced-whitelist-use-configurable-kick-message.patch')
-rw-r--r-- | patches/server/0569-forced-whitelist-use-configurable-kick-message.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0569-forced-whitelist-use-configurable-kick-message.patch b/patches/server/0569-forced-whitelist-use-configurable-kick-message.patch new file mode 100644 index 0000000000..e1def93afa --- /dev/null +++ b/patches/server/0569-forced-whitelist-use-configurable-kick-message.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Trigary <[email protected]> +Date: Sat, 27 Mar 2021 09:24:23 +0100 +Subject: [PATCH] forced whitelist: use configurable kick message + + +diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java +index 607651ca570483e98786aded8986a535301f3e80..cd531eff22742cff16ce4888853cba53861792dd 100644 +--- a/src/main/java/net/minecraft/server/MinecraftServer.java ++++ b/src/main/java/net/minecraft/server/MinecraftServer.java +@@ -2150,7 +2150,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa + ServerPlayer entityplayer = (ServerPlayer) iterator.next(); + + if (!whitelist.isWhiteListed(entityplayer.getGameProfile()) && !this.getPlayerList().isOp(entityplayer.getGameProfile())) { // Paper - Fix kicking ops when whitelist is reloaded (MC-171420) +- entityplayer.connection.disconnect(Component.translatable("multiplayer.disconnect.not_whitelisted")); ++ entityplayer.connection.disconnect(org.spigotmc.SpigotConfig.whitelistMessage); // Paper - use configurable message + } + } + |