From e1536fcae0e51833261bca98dd451d5a8b49366c Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 4 Apr 2024 09:12:45 -0700 Subject: [PATCH] Remove superfluous null check --- .../bentobox/api/commands/admin/team/AdminTeamAddCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamAddCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamAddCommand.java index 99c7b754b..69f38cd1c 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamAddCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamAddCommand.java @@ -49,7 +49,7 @@ public class AdminTeamAddCommand extends CompositeCommand { user.sendMessage("general.errors.player-has-no-island"); return false; } - if (getIslands().inTeam(getWorld(), ownerUUID) && island != null && !ownerUUID.equals(island.getOwner())) { + if (getIslands().inTeam(getWorld(), ownerUUID) && !ownerUUID.equals(island.getOwner())) { user.sendMessage("commands.admin.team.add.name-not-owner", TextVariables.NAME, args.get(0)); new IslandInfo(island).showMembers(user); return false;