2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Mark Vainomaa <mikroskeem@mikroskeem.eu>
|
|
|
|
Date: Wed, 13 Mar 2019 20:08:09 +0200
|
|
|
|
Subject: [PATCH] Call WhitelistToggleEvent when whitelist is toggled
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
2024-06-14 23:07:44 +02:00
|
|
|
index 9e8938627bfd1c45a2546e221f819e20c483a9e2..00c43d7b846e97e2cc2105c93be5ce918fafd775 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
2024-06-13 22:14:13 +02:00
|
|
|
@@ -1126,6 +1126,7 @@ public abstract class PlayerList {
|
2021-06-11 14:02:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setUsingWhiteList(boolean whitelistEnabled) {
|
2024-01-21 13:56:22 +01:00
|
|
|
+ new com.destroystokyo.paper.event.server.WhitelistToggleEvent(whitelistEnabled).callEvent(); // Paper - WhitelistToggleEvent
|
2021-06-11 14:02:28 +02:00
|
|
|
this.doWhiteList = whitelistEnabled;
|
|
|
|
}
|
|
|
|
|