Description
This is a very lean plugin that will allow you to set the game mode for any world on your server.
NOTICE:
My Worlds and Multiverse include this functionality. If you would like me to continue maintenance, please post below.
Summary
Minecraft 1.8 came with the ability to set your server as a creative or survival server, using the server.properties file. However, it does not allow you to have one creative world and one survival world. DefaultGameMode allows you to do just that. Using config.yml, you can specify a game mode (creative or survival) for each of your worlds. You do not have to specify one for every world. If you leave one out, it will default to the gamemode setting found in your server.properties file. All settings apply globally, to all players.
Permissions is never used to determine anyone's game mode. This plugin is designed use as little processing and memory as possible. It is not meant to be feature filled, but to allow you to quickly have creative and survival worlds. It does not generate or load multiple worlds. You will need another plugin to do that. DefaultGameMode does not inhibit the use of /gamemode [username] [0/1]
.
Commands
/dgmtest
- Debug info. Right now, it just tells you whether debug mode is enabled (see debug
in configuration below).
Configuration
The following config.yml is automatically generated if the plugin cannot find it (like when you run it for the first time). It includes an explanation on how configuration works, and it sets "world" and "world_nether" to survival mode.
config.yml
Quote:# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # DefaultGameMode Configuration # # # # This file can be found inside DefaultGameMode.jar with the default # # settings. You can also simply delete this file and reload the server to # # regenerate the default settings. If you haven't edited this file yet, # # the default settings are already here. # # # # Key Values Description # # ----------------------------------------------------------------------- # # debug true If set to true, server console will spit # # false out information that is useful for figuring # # out why the plugin isn't working for you. # # (Hint: it's probably because of a mistake # # in this file!) Default setting: false # # # # modes (none) There is no apparent value. This goes above # # the list of world names. # # # # (world name) survival You must have the name of each world that # # creative you want the plugin to work on. It must be # # below "modes:" and be indented. Put the # # game mode as the value. If you leave out a # # world, the plugin will default to the # # setting found in "server.properties" # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # debug: false modes: world: survival world_nether: survival
All you need for the plugin to work is…
modes: [world name]: [game mode]
[world name]
is the name of a world, and [game mode]
is either creative
or survival
. The debug
setting is not necessary; it will default to false
. If you set it to true
, the plugin with spit out useful information to the console. This is intended to help you figure out why your configuration might not be working.
Once again…
You do not have to specify a game mode for each world. If you leave one out, it will default to the gamemode setting found in your server.properties file. All settings apply globally, to all players.
Permissions
None yet.
Version Stuff:
- v 1.1
- Update to CB 1.1-R4
- v 1.0
- Initial Release
Plans
I'm planning on discontinuing this plugin since My Worlds and Multiverse include this functionality. If you would like me to continue updating, please post below.
- Add permissions node for special players who are exempt from all game mode settings. For example, to allow them to switch between worlds and stay in creative mode.
- Add a command to toggle this in-game.
- Possibly remove the
/dgmtest
command.
History
v 1.0 - Initial release