geforkt von Mirrors/Paper
c3640b1dc0
* She compiles! Also readded the armorstand ticking patch, thanks cat * Update mob goal api * Misc fixes to make it run drop per playing mob spawns for now
19 Zeilen
803 B
Diff
19 Zeilen
803 B
Diff
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/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
|
index 5c6ea9df899a0649abde8c54e6f844eaf53d27dd..d4048812723bed08e5bb2aadc651a92570d4bb2a 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
|
@@ -1049,6 +1049,7 @@ public abstract class PlayerList {
|
|
}
|
|
|
|
public void setHasWhitelist(boolean flag) {
|
|
+ new com.destroystokyo.paper.event.server.WhitelistToggleEvent(flag).callEvent();
|
|
this.hasWhitelist = flag;
|
|
}
|
|
|