SimpleGameMode is a sleek and powerful PocketMine-MP plugin designed to streamline gamemode switching with intuitive and shortened commands. Effortlessly toggle between creative, survival, adventure, and spectator modes. Target specific players or utilize player selectors for maximum flexibility.
- ✂️ Simplified Commands: Shortened commands for quick gamemode changes.
- 🎯 Player Targeting: Change gamemodes for other players using direct names, partial names, or selectors (
@a
,@s
). - 🔐 Permission Control: Restrict command usage based on permissions.
- ⚙️ Configurable Messages: Customize success messages for gamemode changes via the config file.
Command | Description | Permission | Usage |
---|---|---|---|
/gmc |
Change to Creative mode | simplegamemode.gmc |
/gmc [player/@selector] |
/gms |
Change to Survival mode | simplegamemode.gms |
/gms [player/@selector] |
/gma |
Change to Adventure mode | simplegamemode.gma |
/gma [player/@selector] |
/gmsp |
Change to Spectator mode | simplegamemode.gmsp |
/gmsp [player/@selector] |
- Download the
SimpleGameMode.phar
file from the releases page. - Place the
SimpleGameMode.phar
file into theplugins
directory of your PocketMine-MP server. - Restart your server to load the plugin.
Permission | Description | Default |
---|---|---|
simplegamemode.gmc |
Allows the use of /gmc command |
op |
simplegamemode.gms |
Allows the use of /gms command |
op |
simplegamemode.gma |
Allows the use of /gma command |
op |
simplegamemode.gmsp |
Allows the use of /gmsp command |
op |
- Change your own gamemode to Creative:
/gmc | /gmc @s
- Change another player's gamemode to Survival:
/gms PlayerName
- Change all players' gamemode to Adventure:
/gma @a
Customize the success messages in config.yml
:
# Configuration for SimpleGamemode Plugin
# Messages to display when a player's gamemode is changed
messages:
# Message sent to the command sender when they successfully change another player's gamemode
player-gamemode-change: "§f[§cSimpleGameMode§f] §6You have §aSuccessfully changed §{player}'s §6gamemode §fto §{gamemode}."
# Message sent to the player when they change their own gamemode
personal-gamemode-change: "§f[§cSimpleGameMode§f] §6Your gamemode has been changed to §c{gamemode}."
- Clone the repository:
git clone https://github.com/ImmoDevs/SimpleGameMode.git
- Navigate to the plugin directory:
cd SimpleGameMode
- Compile the plugin into a
.phar
file:zip -r SimpleGameMode.phar . -x "*.git*" -x "*.md" -x "tests/*"
Contributions are welcome! Please open an Issues or submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
Created with ❤️ by Unreall