Shortened Gamemode Commands(SGC) is an extremely simple plugin that allows you to quickly and efficiently change gamemodes with 4-5 character commands. Highly customizable, you can give players permisisons to edit their own gamemode SEPERATE from other's. Permissions allow for each individual gamemode so you can configure to (example) only let players turn themselves into survival mode, OR switch between 2, 3 or all gamemodes. This plugin also allows you to silently update someone else's gamemode.
This plugin was inspired by Essenstials aliases gmc/gms/gmsp/gma however this plugin is its own independent library and does not depend on any other plugin.
!!WARNING THIS ONLY WORKS IF THE TARGET PLAYER IS ONLINE!!
Code (commands (Unknown Language)):
Creative mode: /gmc <optional username>
Survival mode: /gms <optional username>
Spectator mode: /gmsp <optional username>
Adventure mode: /gma <optional username>
<optional username> is where you can put someone else's in game name to change their gamemode. If this is left blank then the command sender (you) will have your gamemode changed.
Console command syntax:
If a player is not specified, an error will occur and nothing will happen.
ex.
Console Command: "gmc ilyum"
This changes 'ilyum' to creative mode
The config.yml has an optional toggle for alerting players when you update their gamemode so you can so silently (No message in chat, enabled by default)
This plugin works with permissions plugins such as LuckPerms (recommended) Installation instructions: 1. Download the plugin
2. Place the downloaded jar into your 'plugins' folder in your server directory
3. Run the server and enjoy your new commands!
Authors Note: This is my first ever spigot plugin, and I made it in under 18 hours. Huge shoutout to TheFuzzyHead for helping me and teaching me the basics, and his discord server for the extra support when yours truly didn't understand what was going on.