GameMode Timer

GameMode Timer

What it does

GameMode Timer allows servers to switch a player's GameMode at a preset time.

Features

  • Enable/disable on per world basis
  • Set the time when the game mode automatically switches
  • Set the game mode that the player is switched to
  • Includes a permission to bypass the timed game mode switch
  • Limit the number of players allowed to enter the world
  • Option to reset the time to day when the first player enters the world
  • Option to keep it always night after the switch
  • Ideal for zombie survival RPGs
  • Created in response to this request: Change game mode with timer


Installation

Add the GameModeTimer.jar file to your server's plugins directory and start up the server. A config file will be created automatically with the default values. Use the in-game or console commands to enable worlds and change settings.

Download

This is always the latest file - -> GameModeTimer.jar


How it works

  1. At nightfall, any player on server who is in the GameMode Timer enabled world is switched the specified game mode at the preset time
  2. At player respawn (after deaths) player is given Survival


Commands

  • /gmt toggle [world] [true|false] - turns GameMode Timer on or off for the specified world
  • /gmt time [world] [time] - sets the time the game mode switches in the specified world
  • /gmt gamemode [name] [gamemode] - sets the game mode the player is switched to in the specified world
  • /gmt players [name] [number] - sets the game mode the player is switched to in the specified world
  • /gmt set_morning [name] [true|false] - sets whether to reset the time in the specified world when the first player joins
  • /gmt keep_night [name] [true|false] - sets whether to keep it night after the game mode switch in the specified world


Permissions

gamemodetimer.bypass - allows a player to bypass the game mode switch - default: false
gamemodetimer.admin - allows a player to edit the GameMode Timer config - default: OP


Config

There is one main configuration section:

worlds:

Within the worlds configuration is a list of world names (these are automatically generated when the plugin starts up). A world section looks like:

worlds:
    zombiesurvival:
        enabled: true
        gamemode: ADVENTURE
        time: 18000
        players: 20
        set_morning: true
        keep_night: true
  • enabled can be true or false
  • gamemode can be SURVIVAL, CREATIVE or ADVENTURE
  • time is a number between 0 and 24000, where 0 is dawn, 6000 midday, 12000 dusk, 12500 night and 18000 midnight
  • players limit the number of players allowed to teleport to the world, if set to -1, this setting is ignored
  • set_morning can be true or false - if true sets the worlds time to 0 ticks when the first player joins
  • keep_night can be true or false - if true makes it always night from the time the game mode is switched until the last player leaves

Change log

v1.0 beta 2.0
Added configs (per world) and the associated commands (i.e. /gmt [config option] [world] [value]) for:

  • players - limit the number of players allowed to teleport to the world, if set to -1, this setting is ignored
  • set_morning - if true sets the worlds time to 0 ticks when the first player joins
  • keep_night - if true makes it always night from the time the game mode is switched until the last player leaves

v1.0 beta 1.0

  • Initial release


Source code

GitHub repository


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    48191
  • Created
    Dec 7, 2012
  • Last Released File
    Never
  • Total Downloads
    4,139
  • License

Categories

Members

Recent Files