Add Island Defaults tab to Admin Settings GUI for editing default protection flags#2912
Merged
Merged
Conversation
…tection flags Creates a new tab in the Admin Settings panel (opened with /admin settings) that allows admins to change the default protection flag rank values that new islands will receive. New classes: - IslandDefaultCycleClick: Click handler that cycles default island protection flag ranks and saves to world settings - IslandDefaultSettingsTab: Tab showing protection flags with their default rank values for new islands Changes: - AdminSettingsCommand: Added tab 3 with IslandDefaultSettingsTab - TestWorldSettings: Added mutable defaultIslandFlagNames map - en-US.yml: Added ISLAND_DEFAULTS locale strings Agent-Logs-Url: https://github.com/BentoBoxWorld/BentoBox/sessions/aab884c0-0f55-4fa7-bc57-6d52f03a5992 Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GUI option for default island protection flags
Add Island Defaults tab to Admin Settings GUI for editing default protection flags
Apr 5, 2026
|
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.

Default island protection flag rank values (applied to new islands) could only be changed via config files. This adds a GUI tab to the admin settings panel (
/admin settings) for editing them directly.New classes
IslandDefaultCycleClick— Click handler that cycles default island protection flag ranks through the rank ladder, persisting toWorldSettings.getDefaultIslandFlagNames()and saving viaGameModeAddon.saveWorldSettings()IslandDefaultSettingsTab— Tab extendingSettingsTabfor PROTECTION flags, displaying current default ranks and wiring upIslandDefaultCycleClickper flagChanges
AdminSettingsCommand— Added tab 3 (IslandDefaultSettingsTab) to the no-args admin settings panelen-US.yml— AddedISLAND_DEFAULTSlocale block (title + description)TestWorldSettings— Added mutabledefaultIslandFlagNamesbacking map so the default implementation ofgetDefaultIslandFlagNames()persists changes during testsThe admin settings panel now shows three tabs: