feat(commands): add toggle autocomplete aliases
This commit is contained in:
@@ -46,3 +46,10 @@ description: Chronological record of material decisions affecting the Spigot Bas
|
||||
- Added `/sethome` for `/setbase`, `/home` for `/base`, and `/visit` for `/gotobase`.
|
||||
- Visitor autocomplete remains available for eligible offline bases through the `/visit` alias.
|
||||
- Verified the aliases and plugin build with `./gradlew clean check jar`.
|
||||
|
||||
## 2026-08-10 — Toggle command autocomplete
|
||||
|
||||
- Added explicit, idempotent `on` and `off` modes and autocomplete to base flight and visitor access while retaining no-argument toggling.
|
||||
- Added `/homenavigation`, `/homeflight`, and `/homevisitors` aliases with the same autocomplete as their canonical commands.
|
||||
- Generalized toggle preference resolution for navigation, flight, and visitor access.
|
||||
- Verified the implementation with `./gradlew clean check jar`.
|
||||
|
||||
@@ -20,6 +20,7 @@ As a **player with Base I**, I want visual guidance toward my base so that I can
|
||||
- [x] `/basenavigation` toggles guidance on and off after Base II is unlocked.
|
||||
- [x] `/basenavigation on` enables guidance idempotently and `/basenavigation off` disables it idempotently.
|
||||
- [x] Invalid navigation arguments show command usage, and `on` and `off` are offered through autocomplete.
|
||||
- [x] `/homenavigation` aliases `/basenavigation` with identical behavior and autocomplete.
|
||||
- [x] Grass-or-dirt progress after Base II preserves the player's selected navigation preference.
|
||||
- [x] The navigation preference persists across reconnects and restarts.
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ As a **player with Base I**, I want to unlock controlled flight around my base s
|
||||
- [x] Passing beyond the warning buffer removes only flight granted by this plugin.
|
||||
- [x] Flight is not granted outside the unlocked vertical range.
|
||||
- [x] `/baseflight` toggles the player's unlocked base flight on and off.
|
||||
- [x] `/baseflight on` enables flight idempotently and `/baseflight off` disables it idempotently, with `on` and `off` offered through autocomplete.
|
||||
- [x] `/homeflight` aliases `/baseflight` with identical behavior and autocomplete.
|
||||
- [x] The flight toggle persists across reconnects and restarts.
|
||||
- [x] The plugin handles teleportation, world changes, game-mode changes, death, logout, and plugin shutdown without leaving unintended flight enabled.
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ As a **player with Base III**, I want to open my base to visitors so that other
|
||||
- [x] A successful purchase removes the complete price atomically from the player's direct inventory.
|
||||
- [x] Insufficient funds, an invalid state, or a failed persistence operation does not consume any diamonds or grant Base IV.
|
||||
- [x] `/basevisitors` lets a Base IV owner toggle visitor access on and off.
|
||||
- [x] `/basevisitors on` enables access idempotently and `/basevisitors off` disables it idempotently, with `on` and `off` offered through autocomplete.
|
||||
- [x] `/homevisitors` aliases `/basevisitors` with identical behavior and autocomplete.
|
||||
- [x] The visitor-access preference persists across reconnects and restarts.
|
||||
- [x] `/gotobase <owner>` autocompletes bases that the requesting player is currently eligible to visit.
|
||||
- [x] `/visit <owner>` aliases `/gotobase <owner>` with identical autocomplete, including eligible bases whose owners are offline.
|
||||
|
||||
Reference in New Issue
Block a user