Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
GM Commands
GM Commands adds hidden gamemode shortcut commands to the server:
- /gmsp - switches the player to Spectator mode
- /gmcr - switches the player to Creative mode
- /gmsv - switches the player to Survival mode
- /gmav - switches the player to Adventure mode
These commands are not registered as normal Minecraft commands, so they do not show up in tab-complete and can be made to look like โUnknown commandโ when used. The mod detects the command text before vanilla rejects it, sends a fake unknown-command message, then changes the playerโs gamemode.
CAUTION
By default, the simple version of this mod gives EVERYONE access to these hidden gamemode commands. Any player who knows the commands can use them unless a permission check is added.
For a public or survival server, do NOT use the no-permission version. Add LuckPerms permission checks first, or only trusted players should be allowed on the server.
Recommended LuckPerms permission nodes: gmcmds.gmsp gmcmds.gmcr gmcmds.gmsv gmcmds.gmav
Players without permission should still see the fake โUnknown commandโ message, but the gamemode should not change.


