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 a9fbad126..a3e1c0b8b 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 @@ -95,7 +95,7 @@ public class IslandTeamKickCommand extends ConfirmableCommand { return false; } User target = User.getInstance(targetUUID); - Island oldIsland = Objects.requireNonNull(getIslands().getIsland(getWorld(), targetUUID)); // Should never be + Island oldIsland = Objects.requireNonNull(getIslands().getIsland(getWorld(), user)); // Should never be // null because of // checks above // Fire event