DefaultGameMode
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
should add an option for Adventure Mode
There is already a command for this in-game. /defaultgamemode <mode>
Like the plugin and would like to see it continued if you get a chance, don't let haters get to you the jelly of your skills. Keep up the good work in school and coding. Have fun and look forward to seeing whatever you come up with.
p.s~ no other plugin does fully what yours does.
@racecar484
Haha wow. Yeah, I guess I shouldn't have wasted my time responding to you when I really needed to finish a website, complete my Computer Science minor, work on my resume, email employers, and search for houses. I should probably get off my computer, huh?
Even though I get neither pay nor credit for maintaining a largely pointless plugin, you think serving you should definitely be my priority. Anything I do for you is a favor, and you suck at asking. Get off my page.
@musicin3d
maybe if you have so much "work" you shouldn't be sitting on the computer all damn day long , if u are going to own a plugin be supportive even to the "pissy" ones.
@racecar484
You should do more reading, and less pissing.
Almost two years ago I stopped updating plugins because of school and work. That's why it doesn't work. Today, any good multi-world plugin lets you set the default game mode.
I usually don't help people like you, so feel privileged.
IM PISSED IT LETS ME "THE OWNER" SWITCH MODES WHEN ENTERING NEW WORLDS BUT THEN IT DOESN'T LET OTHER PLAYERS SWITCH IT KEEPS THEM IN THE SAME MODE!
please keep this up to date
Please update!
update this plugin please, save my life ! :D
CONTINUE!!!!
Awesome plugin :-D
Thank you so much! I was having trouble with the gamemodes not being set the way I wanted them too. This plugin solved all my problems! I found other plugins similar to this one, but the authors hadn't created a config file for them.
@rythar
This ought to do it
Sometime people on my server get put into creative to help with projects and sometimes forget to take them out. I would love just a simple plugin to make sure everyone logs in as world mode
@lazarus_mub
… You know there's a server.properties config for that right?
Definitely continue. I'm sure there are loads of people out there we single world servers that want to make sure everyone joins with the same gm.
/mub
@musicin3d
it worked, THANK YOU EVEN ... this plugin is awesome ! :D
@toby000
Done. http:dev.bukkit.org/server-mods/defaultgamemode/files/12-v-1-1-1/ Try that out and get back to me.
@toby000
Wow. Yeah, it shouldn't run on any version with that kind of an error. I can't believe no one has said anything yet. I'll fix that right now.
@musicin3d
I tried to run this plugin on 1.2.4 and show the following error:
02:56:33 [GRAVE] Could not load 'plugins\DefaultGameMode.jar' in folder 'plugins ' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug inLoader.java:193) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:132) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur ationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml ... 8 more