mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-04 01:39:54 +01:00
afe633df08
* convert API tests to mockito * convert server tests to mockito * add co-author
19 lines
872 B
Diff
19 lines
872 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/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
index e0edee2d769b9fa0caa5f6ced7852560d4e01ba9..deca1b45ca55f80228e71e981f5ea5c3495923b3 100644
|
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
@@ -1140,6 +1140,7 @@ public abstract class PlayerList {
|
|
}
|
|
|
|
public void setUsingWhiteList(boolean whitelistEnabled) {
|
|
+ new com.destroystokyo.paper.event.server.WhitelistToggleEvent(whitelistEnabled).callEvent();
|
|
this.doWhiteList = whitelistEnabled;
|
|
}
|
|
|