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 7c0d9a5d0..a9fbad126 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 @@ -108,7 +108,7 @@ public class IslandTeamKickCommand extends ConfirmableCommand { getAddon().getDescription().getName(), TextVariables.NAME, user.getName(), TextVariables.DISPLAY_NAME, user.getDisplayName()); - getIslands().removePlayer(getWorld(), targetUUID); + getIslands().removePlayer(oldIsland, targetUUID); // Clean the target player getPlayers().cleanLeavingPlayer(getWorld(), target, true, oldIsland);