From f71ca4f0847593dad1cc751a96a3c2b6a298d267 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 10 Feb 2019 13:21:01 +0100 Subject: [PATCH] Fixed likely NPE in IslandTeamKickCommand --- .../api/commands/island/team/IslandTeamKickCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamKickCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamKickCommand.java index d3a97f9ef..cdd8af329 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamKickCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamKickCommand.java @@ -34,7 +34,7 @@ public class IslandTeamKickCommand extends ConfirmableCommand { user.sendMessage("general.errors.no-team"); return false; } - if (!getOwner(getWorld(), user).equals(user.getUniqueId())) { + if (user.getUniqueId() != getOwner(getWorld(), user)) { user.sendMessage("general.errors.not-owner"); return false; }