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

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of MerryXmasChaz MerryXmasChaz Jan 26, 2014 at 19:04 UTC - 0 likes

    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.

  • Avatar of musicin3d musicin3d May 16, 2013 at 10:13 UTC - 0 likes

    @racecar484: Go

    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.

    Plugins

    Priorities

    1. Money 2. Fun 3. Whatever
    Want plugins? Choose a category.

    BFAK:75116,d5b6a33d360f01f9e22c9cac61ceab87565e8b9bdaff5c7b7e0344a4f75e6d98

  • Avatar of racecar484 racecar484 May 16, 2013 at 01:13 UTC - 0 likes

    @musicin3d: Go

    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.

  • Avatar of musicin3d musicin3d May 15, 2013 at 00:06 UTC - 0 likes

    @racecar484: Go

    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.

    Last edited May 15, 2013 by musicin3d
  • Avatar of racecar484 racecar484 May 14, 2013 at 22:52 UTC - 0 likes

    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!

  • Avatar of Grilor Grilor Jan 06, 2013 at 22:02 UTC - 0 likes

    please keep this up to date

  • Avatar of supercatman12 supercatman12 Jan 02, 2013 at 20:48 UTC - 0 likes

    Please update!

    CleggoCraft
  • Avatar of toby000 toby000 Aug 18, 2012 at 21:43 UTC - 0 likes

    update this plugin please, save my life ! :D

  • Avatar of maxgamble2 maxgamble2 May 01, 2012 at 18:16 UTC - 0 likes

    CONTINUE!!!!

    Awesome plugin :-D

  • Avatar of EpicSteamer EpicSteamer Apr 16, 2012 at 02:20 UTC - 0 likes

    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.

Facts

Date created
Nov 13, 2011
Categories
Last update
Mar 28, 2012
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
DefaultGameMode
Downloads
3,532
Recent files
  • R: v 1.1.1 for CB 1.2.3-R0.2 Mar 28, 2012
  • R: v 1.1 for CB 1.1-R4 Feb 24, 2012
  • B: v 1.0 for CB 1.0.1-R1 Nov 18, 2011

Authors