CustomTime
CustomTime
Version 2.1.1
By jcv8000
Built on spigot-api-1.17.1-R0.1-SNAPSHOT
Updated for 1.17.1
CustomTime is a simple plugin used to control the day/night cycle. You can speed up or slow down time any way you like.
You can set day or night separately to last a certain number of real-life seconds, minutes, hours, or days, or you can specify a multiplier like '2x' to make time move 2x as fast.
The values for length/multiplier can be decimals. Setting the multiplier less than 1 slows down time, greater than 1 speeds up time.
Worlds can be controlled individually, and supports other worlds created by plugins like MultiVerse. They can't be nether or end worlds though.
Commands:
The command structure has been rewritten to be a lot simpler.
Typing ' /ct ' by itself will display information about the day/night cycle for all worlds that it is affecting.
This is the general usage of the command:
/ct [day/night] [value][s/m/h/d/x] [world (optional)]
s = seconds, m = minutes, h = hours, d = days, using x will apply that number as a multiplier.
(Leaving the [world] parameter blank uses the world that the player is currently in. If left blank in the console it uses the level-name from server.properties)
Example: If you wanted to make the day/night cycle last 24 real hours (in the default world), you would do this:
/ct day 12h
/ct night 12h
Example: Make day and night last 10 seconds each in a MultiVerse world called 'testWorld':
/ct day 10s testWorld
/ct night 10s testWorld
Installation:
Just download the latest .jar file and put it in your server's "plugins" folder.
Permissions:
The permission node customtime.* gives that user/group access to use '/ct' and change the day/night cycle
Wukkit has reviewed CustomTime!
https://www.youtube.com/watch?v=e2CncWBhs10
I made a little video for CustomTime: https://www.youtube.com/watch?v=J2TSa-9n0tA
@RagingCat
I'm glad you like it! :)
The fun I had with 0.1s day/night made me comment. Won't be having regrets installing this plugin.
1.2.2 has been released, fixing time stopping at 18:00 or 6:00 PM in-game time.
Read the changelog here.
@CloudeLecaw
Thank you for reporting this to me. I was out of town when I saw this comment, so I wasn't able to fix it. I had layton90 post the date it would be fixed. I figured out the fix days ago but couldn't fix it. But now I'm back.
So here's why the bug is happening: In 1.2.0 or below, the game would be moving time, and the plugin would be moving time backwards to make it seem like time wasn't moving. Then it would move time according to the multiplier.
And in the code, it would only move time if it were less than 12000 (day), or greater than 12000 (night). Since time would be jumping back and forth since the game was moving it forward and the plugin was moving it backwards, there would be that small amount of time that it was greater than 12000, and the plugin would continue to move time.
Now that 1.2.1 uses the gamerule (doDaylightCycle), time just doesn't move at all. The game isn't moving it, and the plugin isn't automatically moving it backwards. Only moving it according to the multiplier if the time is greater than or less than 12000 (detecting if day or night).
Since the time isn't jumping around like it used to, there was nothing making it go from 12000 to 12001, and 12000 didn't qualify as greater than or less than 12000. So time stops.
1.2.2 will make it move according to the day's multiplier if the time is less than or equal to 12000, and use night's if the time is greater than 12000. Meaning that time will still move when the time is 12000 (18:00 or 6:00 PM). This will cause day to have 1 extra tick over night, but that isn't much.
Edit: You get the update a few hours early :)
@CloudeLecaw
This bug will be fixed on Sunday, July 12. Crafterguy3x3 will explain the bug then
1.2.1 has been released
Read the changelog here.
If you have a bug report or suggestion, please submit a ticket
1.2.0 has been released, FIXING MAJOR BUGS
Read the changelog here.
@CloudeLecaw
I'm working on fixing this, thanks for reporting this to me
1.1.1 has been released
Read the changelog here.
I'll be releasing an update soon that allows you to use
/ct [day/night] set [hours]h
and/ct [day/night] set [seconds]s
and will be built on Java 7.The reason I won't build it on Java 8 yet is because the majority of servers are running on Java 7.
Java version statistics (6/10/2015) (From mcstats.org)
@Crafterguy3x3
Great :D This will certainly give server owners who want a 'realistic' feel to their server a better day/night cycle
1.1.0 has been released
Read the changelog here.
@MajikalBlood
What I actually added was to set the day and night's minute length separately, but that means you only have to divide that 8 hours into 4 hours for day and 4 hours for night.
Do this by typing "/ct day set 240m" and "/ct night set 240m". :)
@MajikalBlood
I will add this tomorrow :) Thanks
@Crafterguy3x3
Yeah. For servers that want semi-realistic gameplay
@MajikalBlood
You mean the entire day-to-night cycle? All 20 minutes worth?
Would be even better if you could set the length of the cycles by a number such as Day/Night cycle is 8 hours per cycle