2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Sat, 3 Oct 2020 22:00:27 -0500
|
|
|
|
Subject: [PATCH] Fix deop kicking non-whitelisted player when white list is
|
|
|
|
not enabled
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2021-06-17 19:11:00 +02:00
|
|
|
index 7894e20484c0b4a48f1cb5181bcb792656db9c94..16bb7d28c8b0e3b60def7ef0e93e648df22c6302 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2021-06-17 19:11:00 +02:00
|
|
|
@@ -2103,6 +2103,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
|
2021-06-11 14:02:28 +02:00
|
|
|
if (this.isEnforceWhitelist()) {
|
|
|
|
PlayerList playerlist = source.getServer().getPlayerList();
|
|
|
|
UserWhiteList whitelist = playerlist.getWhiteList();
|
|
|
|
+ if (!((DedicatedServer)getServer()).getProperties().whiteList.get()) return; // Paper - white list not enabled
|
|
|
|
List<ServerPlayer> list = Lists.newArrayList(playerlist.getPlayers());
|
|
|
|
Iterator iterator = list.iterator();
|
|
|
|
|