Skip to content

Show max team/coop/trusted sizes in admin info command and add size placeholders#2854

Merged
tastybento merged 4 commits into
developfrom
copilot/add-team-size-info-command
Mar 14, 2026
Merged

Show max team/coop/trusted sizes in admin info command and add size placeholders#2854
tastybento merged 4 commits into
developfrom
copilot/add-team-size-info-command

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 14, 2026

Admins had no way to see per-island member size limits (team, coop, trusted) from the info command. These limits can differ from world defaults when set via permissions or island-specific overrides.

Changes

  • IslandInfo#showAdminInfo() — appends max team, coop, and trusted size after the members list using IslandsManager#getMaxMembers() per rank
  • All locale files — adds translated locale keys commands.admin.info.max-team-size, max-coop-size, max-trusted-size to all 23 supported language files (cs, de, en-US, es, fr, hr, hu, id, it, ja, ko, lv, nl, pl, pt-BR, pt, ro, ru, tr, uk, vi, zh-CN, zh-HK)
  • GameModePlaceholder — adds four new placeholders alongside the existing island_members_max:
    • island_coop_max, island_trust_max
    • visited_island_coop_max, visited_island_trust_max
  • AdminInfoCommandTest — updated success assertions to verify the new messages are sent

Example admin info output (new lines)

Team members:
  Owner: steve [Owner]
  alice [Member]
Max team size: 4
Max coop size: 10
Max trusted size: 5
Original prompt

This section details on the original issue you should resolve

<issue_title>Show team size in [admin_cmd] info</issue_title>
<issue_description>### Is your feature request related to a problem?

There is no way to see what is a team, coop and trusted size for player island at all.

Describe the solution you'd like.

Admin Info could contain a list of maxMemberSize per rank so admins could see per island what are the limits on it.

Also, placeholder MAX_TEAM_SIZE would not be a bad call.

Describe alternatives you've considered.

Currently alternative is using a permission plugin to check island owner what permissions are assigned to him.

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported BentoBox build or Addons.

Other

Also, it would be cool if team size could be increased with admin command.</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot AI changed the title [WIP] Add team size display to admin command info Show max team/coop/trusted sizes in admin info command and add size placeholders Mar 14, 2026
Copilot AI requested a review from tastybento March 14, 2026 18:17
@tastybento tastybento marked this pull request as ready for review March 14, 2026 18:30
@tastybento
Copy link
Copy Markdown
Member

@copilot Add translations for the new locale text you create to all the locale files.

…o all locale files

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 14, 2026

@copilot Add translations for the new locale text you create to all the locale files.

Done in commit 7116850. All 22 non-English locale files (cs, de, es, fr, hr, hu, id, it, ja, ko, lv, nl, pl, pt-BR, pt, ro, ru, tr, uk, vi, zh-CN, zh-HK) now include translations for max-team-size, max-coop-size, and max-trusted-size.

@tastybento tastybento merged commit be79f37 into develop Mar 14, 2026
1 check passed
@tastybento tastybento deleted the copilot/add-team-size-info-command branch March 14, 2026 18:57
@sonarqubecloud
Copy link
Copy Markdown

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.

Show team size in [admin_cmd] info

2 participants