Add admin command to set per-island max team size#2851
Merged
tastybento merged 4 commits intodevelopfrom Mar 14, 2026
Merged
Conversation
Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add command to change team size
Add admin command to set per-island max team size
Mar 14, 2026
Member
|
@copilot Add translations for the added text to other locale files. |
Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Admins had no way to override the maximum team size for a specific island at runtime — the only control was the world-default config value. This adds
/[admin] team maxsize <player> <size>as a subcommand of the existingteamgroup.New command:
team maxsize/[admin] team maxsize <player> <size>— persists an island-specific cap viaIslandsManager.setMaxMembers(..., MEMBER_RANK, size), bypassing the world default and any permission-based value.0to clear the island override and revert to the world default.Files changed
AdminTeamSetMaxSizeCommand— new command implementationAdminTeamCommand— registers the new subcommanden-US.yml— addscommands.admin.team.maxsize.{parameters,description,success,reset}PAPI placeholder note
The existing
%[gamemode]_island_members_max%placeholder (ISLAND_MEMBERS_MAX) already resolves the effective per-island max (island-specific override → world default fallback), so it automatically reflects values set by this command. No new placeholder is needed.Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.