SimpleGamemode
A lightweight and configurable Spigot plugin that allows players to change their game mode using the
/gm command — with optional restrictions defined in a simple config file.
✨ Features
- Supports /gm <0|1|2|3> for quick gamemode switching:
- 0: Survival
- 1: Creative
- 2: Adventure
- 3: Spectator
- Blocks specific gamemodes via config.yml
- Permission-based access (simplegamemode.use)
- Supports messages in English (en) and Portuguese (pt) via messages.yml
- Minimal and clean implementation
- Fully open-source (GitHub Repo)
️ Screenshots
[HR][/HR]
⚙️ Configuration
config.yml
Code (YAML):
blocked-gamemodes
:
- creative
- spectator
Gamemodes available:
- survival
- creative
- adventure
- spectator
️ Language Support
To change the language, open
messages.yml and set:
Code (YAML):
language
: pt
# or 'en'
Supported:
- en → English (default)
- pt → Portuguese
️ Permissions
simplegamemode.use |
Allows using /gm command |
op |
[HR][/HR]
⌨️ Commands
/gm <0|1|2|3> |
Switches your game mode |
Usage
- Only players can use the command.
- The plugin checks if the gamemode is blocked in config.yml.
- Shows feedback messages and prevents misuse.
Requirements
- Minecraft Server: 1.20.1+
- Java: 17+
- Tested with Spigot and Purpur
[HR][/HR]
Installation
- Download the latest .jar file
- Place it in your server's plugins/ folder
- Start the server
- Edit config.yml and messages.yml as needed
- Assign the appropriate permission
️ Build Instructions (Maven)
Code (Bash):
git clone https:
//github.com
/4snt
/SimpleGamemode.git
cd SimpleGamemode
mvn clean package
The compiled JAR will be inside the
target/ folder.
[HR][/HR]
File Structure
Code (Text):
SimpleGamemode/
├── src/
│ └── main/
│ ├── java/
│ │ └── dev/fndit/simplegamemode/SimpleGamemodePlugin.java
│ └── resources/
│ ├── plugin.yml
│ ├── config.yml
│ └── messages.yml
├── pom.xml
└── README.md
License
This project is open-source and licensed under the
MIT License.