Skip to content

Make /cba reload confirm and apply world depth live - #121

Merged
tastybento merged 1 commit into
developfrom
fix/admin-reload-feedback
Oct 19, 2026
Merged

tastybento merged 1 commit into
developfrom
fix/admin-reload-feedback

Conversation

@tastybento

Copy link
Copy Markdown
Member

An admin on Discord reported that /cba reload "doesn't work". It does reload config.yml, but it gives no feedback, and one setting wasn't actually picked up.

Changes

  • World depth reload: CustomHeightLimitations saved worldDepth - 1 in its constructor, so after a reload the generator used the new depth but players were still blocked at the old ceiling until a restart. It now reads the live settings on each check.
  • Reload feedback: BentoBox's AdminReloadCommand reloads silently. A new AdminReloadConfirmCommand replaces it under the same reload/rl labels and sends caveblock.commands.admin.reload.reloaded. The message also explains that changes only apply to newly generated chunks, and that world name, dimensions and command aliases need a restart.
  • Locales:
    • Added the new message to every locale.
    • Added the missing general.errors.cave-limit-reached to cs, es, ja, lv, pl, vi and zh-CN.
    • Filled in id.yml and ro.yml, which have been empty placeholders since 2019. These are complete translations and would benefit from review by a native speaker.

Testing

  • mvn test: 79 tests pass, including the new testMoveUsesReloadedWorldDepth.
  • All locale files load as valid YAML and contain every key in en-US.

The same silent-reload problem affects every addon that uses the default reload command, so a confirmation message in BentoBox's AdminReloadCommand itself would fix it everywhere.

🤖 Generated with Claude Code

- CustomHeightLimitations read world depth once at startup, so a
  reloaded world-depth was ignored until restart. It now reads the
  live settings on each check.
- Replace the default admin reload subcommand with one that sends a
  confirmation message, since the BentoBox default reloads silently.
- Add the reloaded message to all locales, add the missing
  cave-limit-reached string to locales that lacked it, and fill in
  the previously empty id and ro locale files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit 794bc1f into develop Oct 19, 2026
3 checks passed
@tastybento
tastybento deleted the fix/admin-reload-feedback branch October 19, 2026 00:15
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