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
- At nightfall, any player on server who is in the GameMode Timer enabled world is switched the specified game mode at the preset time
- 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 betrue
orfalse
gamemode
can beSURVIVAL, CREATIVE
orADVENTURE
time
is a number between 0 and 24000, where 0 is dawn, 6000 midday, 12000 dusk, 12500 night and 18000 midnightplayers
limit the number of players allowed to teleport to the world, if set to-1
, this setting is ignoredset_morning
can betrue
orfalse
- if true sets the worlds time to 0 ticks when the first player joinskeep_night
can betrue
orfalse
- 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 ignoredset_morning
- if true sets the worlds time to 0 ticks when the first player joinskeep_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
Is there a way to change my server gamemode to creative during day and survival during night?
I mean, this plug in let me change to survival at night but it doesn't get back to creative when day comes.
@MerryXmasChaz
No, unfortunately I don't think this plugin will do what you want
It should run on 1.7.2 OK, let me know if it doesn't and I'll fix it right away :)
Is it working fine on 1.7.2? This would be awesome to set up in my server!
Thanks!
@toxictroop
There is no way using the Bukkit API to switch to hardcore game mode because as far as I know it is tied to the world/server properties. You will need to use a ban on death type plugin such as http://dev.bukkit.org/server-mods/ban-death/
Love the plugin please can you add hardcore? this is all i need it for, switching to hardcore at night and survival at day. thx