[GEN/FIX/EDIT] DefaultGameMode v1.1 - {Moved to BukkitDev} Set game mode for each world [1.1-R4]

Discussion in 'Inactive/Unsupported Plugins' started by musicin3d, Nov 21, 2011.

  1. Offline

    musicin3d

    This is a placeholder.
    Please visit the BukkitDev page for the latest information, downloads, and to post comments/questions.

    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 all your worlds. 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 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

    Code:
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    #                        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. Thedebug 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.
     
    MegaMech likes this.
  2. Offline

    Kohle

    Nice. A better alternative to all the features of something such as MultiVerse.
     
  3. Offline

    Windwaker

  4. Offline

    musicin3d

    Thanks! :D
    Just a warning, in case you missed it in the first post: This plugin does not load worlds.
     
  5. Offline

    MegaMech

    Perfect! Just what I need! but will it work on 1.0.0

    Awesome! Works exactly how I want it! Thanks

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 21, 2016
  6. Offline

    md_5

    Latest rb please
     
  7. Offline

    musicin3d

    I didn't think anyone used this plugin anymore since the functionality is included in My Worlds and Multiverse. I'll go ahead and do any updates I need to, but I don't think I'm going to keep up after that. Heck I don't even use it on my own server.

    However, if someone posts here (before the next bukkit update) saying they would like to keep the plugin, I'll keep updating.
     

Share This Page