2020-05-06 09:48:49 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-03-13 20:51:42 +00:00
|
|
|
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/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
2020-06-26 12:04:38 +00:00
|
|
|
index 5c6ea9df899a0649abde8c54e6f844eaf53d27dd..d4048812723bed08e5bb2aadc651a92570d4bb2a 100644
|
2019-03-13 20:51:42 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
2020-06-25 14:09:55 +00:00
|
|
|
@@ -1049,6 +1049,7 @@ public abstract class PlayerList {
|
2019-03-13 20:51:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setHasWhitelist(boolean flag) {
|
|
|
|
+ new com.destroystokyo.paper.event.server.WhitelistToggleEvent(flag).callEvent();
|
2020-06-25 14:09:55 +00:00
|
|
|
this.hasWhitelist = flag;
|
2019-03-13 20:51:42 +00:00
|
|
|
}
|
|
|
|
|