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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What changed
/gmicas an alias handled by the existing GameModeInventories command executorgamemodeinventories.togglepermission, defaulting to operatorsPlayerGameModeChangeEventlistener/gmitab completions when the alias is usedWhy
Servers currently need to rely on another plugin for a short Creative-mode toggle command. Providing
/gmicdirectly ensures the mode change consistently flows through GameModeInventories' existing inventory-switching behavior.Validation
masterGameModeInventoriesCommands.javaandplugin.ymlare changed