This version comes with many improvements, both for me when developing the plugin, and for you, the end user
**Here is a list of changes:**
- Made it so that the player is properly notified if the gamemode change is cancelled
- Fixed bug which resulted in gamemode changes being cancelled when changing which gamemode a player is locked to
- Made the tab-complete for the gamemode lock commands way better, it now properly filters out useless entries as you type
- **[Requested Feature!]** Added a new config option which lets you choose whether or not players get notified when their gamemode gets changed (More details below)
- Added a config version number (Which doesn't automatically change) to make it easier to tell when you need a config update (More details below)
Okay! That's all the changes!
For the new config option, if you're an existing user of the plugin, I'd recommend adding the new options to your config, resetting the config entirely, or grabbing the updated config from the main plugin page
If you want to add the new options to your config manually then you can copy them from below and adjust them to your liking, be sure to put the config version all the way at the bottom of your config file!
```
# When changing another players gamemode, should the target player be notified when their gamemode is changed?
# Options: true, false
send-target-message: true
```
I've fixed a few bugs with the GMLock and GMUnlock commands and I edited the config file as it was missing a bracket, this is a very small update so feel free to not update, you likely don't need to
GMLock command, With this command you can set someone's gamemode and they can't change it until the /GMUnlock command is used on them
Why is this useful?
- Because sometimes plugins will try to change your gamemode and you don't want that and sometimes you have that one player that has been finding exploits and changing gamemodes, With this command you don't have to worry! Just use it on the troublesome players like so: /GMLock <player> <gamemode>, The plugin will detect gamemode changes and revert them instantly!
GMUnlock command, This command will allow you to unlock someones gamemode that was locked with the /GMLock command! Just use it like so: /GMUnlock <player>
(Of course each of these new commands have their own permission nodes, The spigot page will be updated shortly to include the new permissions )
Other features: We now offer a built in update checker!
- It runs when the server starts and/or the plugin gets reloaded, It will notify you via console if an update is needed.
There is now a GMLockData.yml file.
- Don't edit this file as it stores important data on if a player is meant to have their gamemode locked, Editing this file might break stuff!
Alright! That's all for this update, I really hope you all find this useful and if you need help or have a bug join my Discord and I'll help you sort it out!