From f6a93775bf0bd6d6fd5ace0539565c55983bd795 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Sat, 12 Apr 2014 07:21:01 -0500 Subject: [PATCH] Check the actual whitelist for Player#isWhitelisted() The server's check is for whether or not a player can pass the whitelist not just if the player is on it. That seems like more useful information but the API has always just checked if they are on it so this commit restores that. --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index b5a54c85b1..220967baa2 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -752,7 +752,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @Override public boolean isWhitelisted() { - return server.getHandle().isWhitelisted(getProfile()); + return server.getHandle().getWhitelist().isWhitelisted(getProfile()); } @Override