Fix even more errors

This commit is contained in:
Jake Potrebic
2022-06-07 14:15:14 -07:00
parent 60921838b7
commit 5ef117c8a9
3 changed files with 10 additions and 12 deletions

View File

@@ -22,15 +22,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
IpBanListEntry ipbanentry = this.ipBans.get(socketaddress);
@@ -0,0 +0,0 @@ public abstract class PlayerList {
this.server.getCommands().sendCommands(player);
}
+ // Paper start
public boolean isWhiteListed(GameProfile profile) {
- return !this.doWhiteList || this.ops.contains(profile) || this.whitelist.contains(profile);
+ return isWhitelisted(profile, null);
+ // Paper start
+ return isWhiteListed(profile, null);
+ }
+ public boolean isWhitelisted(GameProfile gameprofile, org.bukkit.event.player.PlayerLoginEvent loginEvent) {
+ public boolean isWhiteListed(GameProfile gameprofile, org.bukkit.event.player.PlayerLoginEvent loginEvent) {
+ boolean isOp = this.ops.contains(gameprofile);
+ boolean isWhitelisted = !this.doWhiteList || isOp || this.whitelist.contains(gameprofile);
+ final com.destroystokyo.paper.event.profile.ProfileWhitelistVerifyEvent event;
@@ -43,8 +42,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ return false;
+ }
+ return true;
+ // Paper end
}
+ // Paper end
public boolean isOp(GameProfile profile) {
return this.ops.contains(profile) || this.server.isSingleplayerOwner(profile) && this.server.getWorldData().getAllowCommands() || this.allowCheatsForAllPlayers;