Add /gmic creative mode toggle #3

Merged
NotAlexNoyle merged 3 commits from agent/add-gmic-command into master 2026-07-24 12:40:55 -04:00
NotAlexNoyle commented 2026-07-24 12:39:37 -04:00 (Migrated from github.com)

What changed

  • adds /gmic as an alias handled by the existing GameModeInventories command executor
  • toggles players between Creative and Survival mode
  • adds the gamemodeinventories.toggle permission, defaulting to operators
  • leaves inventory switching to the existing PlayerGameModeChangeEvent listener
  • suppresses irrelevant /gmi tab completions when the alias is used

Why

Servers currently need to rely on another plugin for a short Creative-mode toggle command. Providing /gmic directly ensures the mode change consistently flows through GameModeInventories' existing inventory-switching behavior.

Validation

  • inspected the final branch diff against master
  • confirmed only GameModeInventoriesCommands.java and plugin.yml are changed
  • local Gradle validation was unavailable because the execution environment could not access GitHub and did not have a pre-existing checkout
## What changed - adds `/gmic` as an alias handled by the existing GameModeInventories command executor - toggles players between Creative and Survival mode - adds the `gamemodeinventories.toggle` permission, defaulting to operators - leaves inventory switching to the existing `PlayerGameModeChangeEvent` listener - suppresses irrelevant `/gmi` tab completions when the alias is used ## Why Servers currently need to rely on another plugin for a short Creative-mode toggle command. Providing `/gmic` directly ensures the mode change consistently flows through GameModeInventories' existing inventory-switching behavior. ## Validation - inspected the final branch diff against `master` - confirmed only `GameModeInventoriesCommands.java` and `plugin.yml` are changed - local Gradle validation was unavailable because the execution environment could not access GitHub and did not have a pre-existing checkout
Sign in to join this conversation.