mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
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. By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
parent
8553d1d462
commit
baaca718ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user