2020-10-04 05:04:14 +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-03-09 00:12:31 +01:00
|
|
|
index b2940f0a9b6fba05defe3369b6d2561d054714fe..5a1c14eccf58c39aced52011c6e094c0a3c46cd9 100644
|
2020-10-04 05:04:14 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2021-03-09 00:12:31 +01:00
|
|
|
@@ -1899,6 +1899,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
2020-11-03 03:22:15 +01:00
|
|
|
if (this.aN()) {
|
2020-10-04 05:04:14 +02:00
|
|
|
PlayerList playerlist = commandlistenerwrapper.getServer().getPlayerList();
|
|
|
|
WhiteList whitelist = playerlist.getWhitelist();
|
|
|
|
+ if (!((DedicatedServer)getServer()).getDedicatedServerProperties().whiteList.get()) return; // Paper - white list not enabled
|
|
|
|
List<EntityPlayer> list = Lists.newArrayList(playerlist.getPlayers());
|
|
|
|
Iterator iterator = list.iterator();
|
|
|
|
|