# Gamemode Locks Gamemode Locks are a feature added by SWPM that allows hosts to designate specific areas/dimensions with a set gamemode. - This gamemode will override the default setting of the world or server. - This gamemode lock will automatically change the gamemode of any player that crosses into the area/dimension. - This gamemode lock will not effect those with the correct keys to bypass. Please see [Role Permission Keys](https://wiki.swequestrian.com/books/swplus-mod/page/role-permission-keys). - This gamemode can be set to apply to a specific dimension, or even a specific area within a dimension. - This gamemode can "nest". An area Gamemode Lock will override a dimensional Gamemode Lock. --- #### View Gamemode Locks
Gamemode Locks can only be viewed/edited by players with the Admin Key (SWPM) and within the applicable dimension.
`/swpm gamemode list` List all gamemode locks in the current dimension. --- #### Create a Gamemode Lock (Basic)Gamemode Locks can only be set by players with the Admin Key (SWPM).
`/swpm gamemode [gamemode] [@/player] dimensionTeams need to be set up separately (Minecraft feature) and players manually added to the team. Read more **[here](https://minecraft.fandom.com/wiki/Commands/team).**
--- #### Options (Explained) **Gamemode**[**Adventure**](https://minecraft.fandom.com/wiki/Adventure) | The player is mortal (can be killed), can explore the world but cannot place or destroy blocks. |
**[Survival](https://minecraft.fandom.com/wiki/Survival)** | The player is mortal (can be killed) and may explore the world, place and destroy blocks. |
**[Creative](https://minecraft.fandom.com/wiki/Creative)** | The player is immortal, has free access to any block in the game, instant destruction of blocks, creative flight. |
**[Spectator](https://minecraft.fandom.com/wiki/Spectator)** | The player is immortal, can fly through objects or the world, cannot interact with any items or entities. |
[**Target Selector**](https://minecraft.fandom.com/wiki/Target_selectors) | A selector such as @a (all players) |
**Player UN** | A specific player's username |
**Player [UUID](https://minecraft.fandom.com/wiki/UUID)** | A specific player's user ID (UUID) |
**Dimension** | A selector such as @a (all players) |
[**Block Position**](https://minecraft.fandom.com/wiki/Argument_types#block_pos) | Determine a cube selection of the desired area (selection) including **height** and **depth**. Specify the coordinates of two opposing corner blocks. |
Gamemode Locks can only be removed by players with the Admin Key (SWPM) who are located within the region/dimension Lock.
`/swpm gamemode removeThis is not a complete list of version changes / fixes. It is a changelog of relevant wiki-related version information.
**MC Version** | **Release** | **Notes** |
1.18.2 | 1.18.2-2.1.0 | New feature - added **/gamemode** command |