SunshineHours icon

SunshineHours -----

Extend the duration of Days and Nights without side-effects!



SunshineHours v1.0 - Extend the duration of Days and Nights without (known) side-effects!

INFO: Updates will be posted in this new thread from now on!

clock.gif

Days are too short, and nights too boring in your survival world? The days in general go by too fast? No problem anymore!
This Plugin lets you extend the duration of Days and Nights independently (e.g. have the daytime be 20 minutes long, but the nighttime the normal 10 minutes) without affecting Tick-Dependent behavior in Minecraft (e.g. redstone contraptions) as other time-changing plugins do!

How this is achieved:
You can choose two points during the day cycle of Minecraft, with 6000 being Mid-Day and 18000 being Midnight, which are the standard values for this plugin. Whenever one of these points in time is reached, the World's daylight cycle is stopped, then later resumed after a specified amount of time.

The Pro's of this plugin:
+ Uses only the DoDaylightCycle Gamerule, so is (in principle) compatible to all mods and plugins that do not change or rely on this variable.
+ Otherwise is especially made to work with Plugins/Commands/Features that set the time explicitly (e.g. /time set ... or just sleeping in beds). As soon as the time exceeds the specified halt-points the daylight cycle resumes as normal.
+ No hacky shadows when using shaders

Con's / Disclaimers:
- Compatibility is not yet exhaustively tested, however no incompatibilities have been found so far (yay!), feel free to report any bugs!
- Currently only works on one world at a time
- Manually setting the Gamerule DoDaylightCycle WILL break this. Do at your own risk.

How to use:
Place the SunshineHours.jar in your Plugins Folder, run once and then change the config.yml to your likings. The file itself is pretty self-explanatory. All units are in "Ticks", the internal minecraft time unit.

"DayPoint" and "NightPoint" are the points at which time is stopped, while "DayLength" and "NightLength" are the duration for how long the time is stopped at these respective points.
______________________________________________________

Note:
This was originally developed by myself for myself, for exclusive use on a privately owned server. I only uploaded this here after I was told such a plugin seemingly does not exist on its own at this point. Rights to the Minecraft game, the Server software and the API's used are with their respective owners. Except for the Spigot/Bukkit API Library used, this plugin was entirely thought of and written by myself. Use at your own risk. I do not intend to generate any profit from this.

If anyone wants to use this plugin on their commercial server, it is also at their own risk. I do not guarantee that this will always work as intended or specified and any consequences that arise form using this software, be it technical, legal or otherwise are on behalf of the user alone, I do not take any responsibility. Modifications to the source code I wrote are explicitly allowed, as well as re-using the plugin or adding it to feature collections. You don't even have to mention me if doing so, however I'd personally welcome it if you did.
Resource Information
Author:
----------
Total Downloads: 59
First Release: Aug 8, 2021
Last Update: Aug 8, 2021
Category: ---------------
All-Time Rating:
1 ratings
Find more info at www.spigotmc.org...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings