All day or all of the night
What it does
All day or all of the night allows servers to set worlds to only run in a specified part of the day. You can make it always day, or always night.
Features
- Enable/disable on per world basis
- Set the start and end times the world stays within
- Configure how often the plugin checks the time
- Created in response to this request: NoNight, and because I wasn't happy with the supplied and somewhat limited solution...
I'm content to be with you in the daytime
Girl I want to be with you all of the time
The only time I feel alright is by your side
Girl I want to be with you all of the nighttime
All day or all of the night
All day or all of the night
All day or all of the night
Installation
Add the AllDayAlNight.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.
How it works
- Once a world is enabled in the config, time switching occurs automatically
- The default settings allow the day to run as normal, then at dusk (12000 ticks) it automatically sets the time to dawn (0 ticks)
- To make it always night, set dawn to 12500 and dusk to 23500
Commands
/adan toggle [world] [true|false]
- turns AllDayAlNight on or off for the specified world/adan dawn [world] [time]
- sets the lower time limit in the specified world/adan dusk [world] [time]
- sets the upper time limit in the specified world/adan check_every [time]
- sets how often the plugin checks to see what the time is
Permissions
alldayallnight.admin
- allows a player to edit the AllDayAllNight 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: allday: enabled: true dawn: 0 dusk: 12000 allnight: enabled: true dawn: 12500 dusk: 23500
enabled
can betrue
orfalse
dawn
is a number between 0 and 24000, where 0 is dawn, 6000 midday, 12000 dusk, 12500 night and 18000 midnightdusk
is a number between 0 and 24000, where 0 is dawn, 6000 midday, 12000 dusk, 12500 night and 18000 midnight
There is also a config key for how often the plugin checks to see whether it should change the time
check_every: 1200
The default is 1200 ticks or every minute. The plugin will only change the time if the current time falls outside of the range specified in the world config settings (dawn/dusk)
Change log
v1.0.1
- compiled against Bukkit 1.7.2
v1.0
- Initial release
@GWMX
Yes, the plugin doesn't really ever need updating for new Minecraft versions :)
Does it work with MC 1.9?
@EvilWitchdoctor
I don't have time for much plugin programming these days, it'd be quicker for you to code it yourself. Feel free to use any code from the GitHub repo linked above.
On a server with just one world you can always use /gamerule doDayNightCycle false,
but this is still very handy elsewhere. I was wondering though, if all the players in a world get in beds to sleep, instead of having it go to day for a second and then back to night just keep the players in bed forever or until they exit the bed? If you can get it to do that then this would be a great plugin to use along with a Mafia game plugin I am making :-)
working on spigot 1.8.1! thanks so much!!
@marbear89
As I commented here: http://dev.bukkit.org/bukkit-plugins/all-day-and-all-night/?comment=3 it shouldn't ever need updating, the last update was only so Bukkit didn't mark the project as inactive...
Hi there, amazing program. I am using it even when it is not really up to date I believe. Great job in making it!
@dagurucraft
Post server startup log - please use a paste
great plugin - had it working perfectly- but then for some reason the in game commands are no longer working/connecting to config?
no matter what it says the world does not exist in config- when it does
i did a fresh install (completely removed) and all the worlds are there- still same in game issue
i was able to just go into the config and change the settings there- but weird???
Great for creative worlds and challenging survival worlds.
Thanks, barring huge changes in the Minecraft or Bukkit API it should be compatible with future versions as well
Nice plugin, is working with Bukkit 1.5.2 b2788 :)
Great, thank you! :)