From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Mark Vainomaa 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 index e889c7f626316ea68e9231d903bd97095f07e9e9..b494d7fc864a2fa734c73c2c4d433e288bccfb26 100644 --- a/src/main/java/net/minecraft/server/players/PlayerList.java +++ b/src/main/java/net/minecraft/server/players/PlayerList.java @@ -1123,6 +1123,7 @@ public abstract class PlayerList { } public void setUsingWhiteList(boolean whitelistEnabled) { + new com.destroystokyo.paper.event.server.WhitelistToggleEvent(whitelistEnabled).callEvent(); this.doWhiteList = whitelistEnabled; }