Added the permission pv.gamemode that is required for the ChangeToOnVanish and ChangeToOnReappear features to apply the configured gamemode. You can use this permission to further configure which players should have their gamemode changed and which players should keep their previous gamemode.
This new permission is only active if the new config setting'RequirePermission' is enabled
To enable it, please copy it into your config file and set it to true as shown below:
Code (Text):
GameMode:
# The gamemode which players will get when they vanish
# 'Default' applies for every world which isn't mentioned below
# !! Warning: World names are case-sensitive !!
# Available gamemodes: SURVIVAL, ADVENTURE, CREATIVE, SPECTATOR, KEEP
# KEEP won't change the gamemode in any way
ChangeToOnVanish:
Default: KEEP
ExampleWorld123: SPECTATOR
# The gamemode which players will get when they reappear
# 'Default' applies for every world which isn't mentioned below
# Available gamemodes: SURVIVAL, ADVENTURE, CREATIVE, SPECTATOR, KEEP
# KEEP won't change the gamemode in any way
ChangeToOnReappear:
Default: KEEP
AnotherExampleWorld2: SURVIVAL
# Should PV update the gamemode 1 tick after a player joins/changes their world?
# The new gamemode will depend on the player's new world, as defined above
# Helpful if you want to force players to be in a gamemode in a specific world
# or if another plugin interferes with PV.
ReApplyGameModeChangeOnWorldChange: true
ReApplyGameModeChangeOnJoin: true
# Should the gamemode change when you join vanished *because of* your pv.joinvanished permission?
# Ignores the two settings above.
AlwaysApplyOnJoinVanished: true
# Whether to require the permission pv.gamemode to change the player's gamemode with the settings above
RequirePermission: true