Add per-island inventory switching (#40)#41
Merged
tastybento merged 2 commits intodevelopfrom Mar 30, 2026
Merged
Conversation
Players who own multiple islands now get separate inventories per island, preventing cross-island resource cheating. Inventories switch when entering an owned island's protection zone, teleporting between owned islands, or respawning on a different owned island after death. Island inventories stay consistent across Overworld/Nether/End dimensions. Controlled by the new options.islands config toggle (default: true). No behavior change for games without concurrent island ownership. Also fixes pre-existing @AfterEach (JUnit 5) annotations in tests that should have been @after (JUnit 4), and fixes advancements being stored under raw world name instead of the normalized storage key. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the single islands boolean with a nested config that lets admins control which aspects are switched per-island independently. Each option (inventory, health, food, advancements, gamemode, experience, ender-chest, statistics) can be toggled separately under options.islands. Options default to matching the original behavior (inventory and ender-chest on, rest off). The world-level option must also be enabled for the island sub-option to take effect. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
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.



Summary
options.islandsconfig section with granular sub-options for each aspect (inventory, health, food, advancements, gamemode, experience, ender-chest, statistics)Config
Test plan
options.islands.active: falsedisables all per-island switchingCloses #40
🤖 Generated with Claude Code