Skip to content

AdminTeamKick: default to current island, add --all for sweep-all behaviour#2967

Draft
Copilot wants to merge 2 commits intodevelopfrom
copilot/fix-admin-team-kick-behavior
Draft

AdminTeamKick: default to current island, add --all for sweep-all behaviour#2967
Copilot wants to merge 2 commits intodevelopfrom
copilot/fix-admin-team-kick-behavior

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 5, 2026

/bbox admin team kick <player> was silently kicking multi-island players from every island at once — a sharper tool than most admins expect, with no way to scope the action to a single island.

Changes

AdminTeamKickCommand

  • Default (no flag): resolves the island via getIslandAt(user.getLocation()) and kicks the target only from that island; shows the existing per-island success message.
  • --all flag: /bbox admin team kick <player> --all restores the sweep-all behaviour and shows success-all.
  • Guard clauses added in canExecute:
    • Console sender without --allmust-stand-on-island
    • Admin not standing on any island → must-stand-on-island
    • Target not a member of the island underfoot → not-member-of-this-island
    • Unrecognised second argument → shows help
  • Tab completion: suggests --all when the resolved target belongs to more than one island.
  • Extracted a private kickFromIsland(user, island) helper to eliminate the duplicated per-island logic.

en-US.yml

  • parameters: <team player><team player> [--all]
  • Added must-stand-on-island and not-member-of-this-island messages.

…or multi-island kick

Agent-Logs-Url: https://github.com/BentoBoxWorld/BentoBox/sessions/6e406756-8081-4292-bb63-00f6fe227777

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix admin team kick to only remove player from specified island AdminTeamKick: default to current island, add --all for sweep-all behaviour May 5, 2026
Copilot AI requested a review from tastybento May 5, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin team kick on multi-island players kicks from all islands at once

2 participants