A simple plugin to force players into a gamemode whenever they join the server or change worlds. Can also prevent players from switching gamemode.
Code (YAML):
default-gamemode
:
NONE
worlds:
Lobby
: ADVENTURE
Creative
: CREATIVE
worlds-prevent-switching
:
- Creative
# - "*" # For all worlds
cant-switch-message
:
"&cYou can't change gamemode in this world!"
If you want to disable the "You can't change gamemode" message, set it to ""
If you want to not specify any default gamemode or allow any gamemode in a specific world, use "NONE"
To reload the config, run /forcegamemode reload