Skip to content

Commit

Permalink
Make sure it's the user's island that the target is being kicked from
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Apr 9, 2024
1 parent e7055c6 commit c86eb6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected boolean kick(User user, UUID targetUUID) {
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
Expand Down

0 comments on commit c86eb6a

Please sign in to comment.