Make sure it's the user's island that the target is being kicked from

This commit is contained in:
tastybento 2024-04-08 22:11:52 -07:00
parent e7055c6cba
commit c86eb6a19c
1 changed files with 1 additions and 1 deletions

View File

@ -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