Make sure it's the user's island that the target is being kicked from
This commit is contained in:
parent
e7055c6cba
commit
c86eb6a19c
|
@ -95,7 +95,7 @@ public class IslandTeamKickCommand extends ConfirmableCommand {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
User target = User.getInstance(targetUUID);
|
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
|
// null because of
|
||||||
// checks above
|
// checks above
|
||||||
// Fire event
|
// Fire event
|
||||||
|
|
Loading…
Reference in New Issue