Skip to content

fix: add missing game mode worlds to the default config - #61

Merged
tastybento merged 1 commit into
developfrom
fix/default-worlds-missing-gamemodes
Jul 27, 2026
Merged

fix: add missing game mode worlds to the default config#61
tastybento merged 1 commit into
developfrom
fix/default-worlds-missing-gamemodes

Conversation

@tastybento

Copy link
Copy Markdown
Member

Why

The shipped worlds: list has not kept up with the game modes BentoBox now has. Four are missing, so on a fresh install InvSwitcher silently does not manage those worlds. There is no signal when this happens — a world that was never hooked produces no log line — so the gap is invisible until items start leaking between worlds.

This came out of a support case. A server running Multiverse-Inventories alongside InvSwitcher was told to grant mvinv.bypass.world.<world> to stop MV-I fighting InvSwitcher (see #60). That worked for BSkyBlock and OneBlock, but Parkour then broke in a new way: parkour_world had MV-I switched off by the bypass and was absent from InvSwitcher's world list, leaving it with no inventory manager at all. Pressure plates picked up in the parkour world walked straight out into the lobby.

Audit

World names taken from each game mode's own config:

Game mode World Was in default config
AcidIsland acidisland_world
BSkyBlock bskyblock_world
Boxed boxed_world
CaveBlock caveblock-world
AOneBlock oneblock_world
StrangerRealms stranger_world
Poseidon poseidon_world
SkyGrid skygrid-world ❌ added
Raft raft_world ❌ added
Brix brix_world ❌ added
Parkour parkour_world ❌ added

Raft's name comes from Settings.java (world.world-name, default raft_world) since its config.yml is generated. gg was checked and excluded — it extends Addon, not GameModeAddon, and has no world.

Notes

  • Existing entries are untouched and existing servers are unaffected; a config that is already on disk is not rewritten, so this only helps new installs.
  • skyblock-world is already in the list and matches no current game mode. Left alone deliberately — harmless, and removing it could affect anyone who genuinely named a world that.

Verification

mvn test — 125 tests, 0 failures. (Local JaCoCo cannot instrument Java 25 class files, so the run used -Djacoco.skip=true; unrelated to this change.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01YXnYDGiASdSUZFtNyS4jbc

The shipped `worlds:` list had not kept up with the game modes BentoBox now
has, so SkyGrid, Raft, Brix and Parkour were absent. On a fresh install
InvSwitcher silently did not manage those worlds, and because nothing is
logged for a world that was never hooked, there is no signal that coverage is
missing until items start leaking between worlds.

This surfaced on a server running Multiverse-Inventories alongside
InvSwitcher. After granting `mvinv.bypass.world.parkour_world` to stop MV-I
handling the world, `parkour_world` was left with no inventory manager at all
- it was not in InvSwitcher's world list either - and items carried straight
out of the parkour world into the lobby.

World names verified against each game mode's own config: skygrid-world
(SkyGrid), raft_world (Raft, from Settings.java), brix_world (Brix),
parkour_world (Parkour). Existing entries are untouched, and only new installs
pick up the additions.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YXnYDGiASdSUZFtNyS4jbc
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit 465cd63 into develop Jul 27, 2026
3 checks passed
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.

1 participant