RealTimeRotation
RealTimeRotation
This plugin sets the time of all worlds, to emulate the real sun including sunset and sunrise. Also the duration of the day can be modified.
Important Notice
To avoid problems with your setup of this plugin please read the Important-Notice-page.
Features
Basically what it does is using the configuration to change the day to a more realistic cycle.
To describe it in an easy way, lets imagine the server is set to a 24 hours day. In your configuration it is told, that the location is Berlin, Germany and its the 10th of June 2013. The sun on your server will rise at 04:46:47 AM and sunset will be at 9:11:37 PM. As you can imagine, the sun in MineCraft will then rise, when the sun is also rising in reality.
FYI: the normal days duration in MineCraft is 20 minutes with 10 minutes of day-light and 10 minutes night. Not quiet but its close enough.
Side-effects / known issues
As the server then uses the real time to calculate its own, you will be faced with following effects:
- manipulating the time with "/time set n" won't work anymore
- skipping the night by sleeping won't work either
Reporting bugs and artifacts
I really would appreciate if you could report all bugs and artifacts you may encounter.
For example:
- The sun at dawn (in pre-alpha) used to skip a few seconds (not to say hours)
- When going to sleep the night will not pass
So,... if you encounter something like this: you can report it right here
Future changes
- Implementing a command to display the time of the current world/server
- Re-enabling the ability to manipulate time by going to sleep or using "/time set n"
Commands / Permissions
There are no commands or permissions to care about.
Configuration
All information about the configuration can be found here.
Additional information
This plugin sends request to a third-party-server providing the sunset and sunrise of a location and get the lunar-state. Since 0.1.36 you can use a static value to emulate sunset and sunrise. This will result in the plugin not requesting anything from outside.
This requests will not send any informations about your server or the players on it! It will only use the settings provided in the configuration-file of this plugin!
Java-Versions
- 0.1.36 b and above: Java 6
- below 0.1.36 b: Java 7
Change-Log
0.3.0 b
- updated plugin to work with 1.9 again (previous versions work with 1.8)
- significant performance-improvements
- multi-world-support. the time can be configured for every world
0.2.33 r
- fixed an offset of 20 minutes between sunrise in game and sunrise in reality
- implemented some performance-improvements
- ticks to calculate the time at is now configurable
- fixed lunar-index to display it the right way
0.2.23 b
- Fixed time-offset that may corrupt sunset- and sunrise-animation so it would be on wrong times
- Changed configuration to adjust the offset of users (overcome the timezone of the server)
0.1.36 b
- added availability to use static values for sunrise and sunset
- converted project to Java 6
- configuration updated !!
0.1.12 b
- moon depends on the real moon (lunar cycles are now available!)
Contact
Please contact me using the pm-function. Since i get mails i will answer asap (even if i havent been on this page for a while).
-
View User Profile
-
Send Message
Posted Aug 3, 2016Salut
La version 1.9 marche très bien avec Spigot 1.10.2
-
View User Profile
-
Send Message
Posted Apr 30, 2016I want a 1.7.10 version please!
-
View User Profile
-
Send Message
Posted Apr 22, 2016Update for 1.9 will be online soon. This plugin is broken since the 1.9 update of bukkit (some api-changes I'd suspect). The code itself is ready already. Only has to be approved.
-
View User Profile
-
Send Message
Posted Dec 30, 2016When will be the Update?
-
View User Profile
-
Send Message
Posted Nov 25, 2014I have to say, its a nice plugin!
-
View User Profile
-
Send Message
Posted Oct 11, 2013@GPlayer93
Sorry for the late answer.
Maybe you closed ports or http-request send by java. Or maybe the source i get the information from has been unavailable at this time.
If you still have this issue, you may turn of update by external source and set the sunset- and sunrise-times manually in the config-files. How you can do this, is written down in the configuration-doc.
I've had a rough time at work lately and hope to be able to update the plugin asap.
-
View User Profile
-
Send Message
Posted Sep 27, 2013plugin doesnt work:
04:57:19 CONSOLE:[SEVERE] java.io.IOException: Server returned HTTP response code: 500 for URL: http://farmsense-prod.apigee.net/v1/moonphases/?d=1380337024 04:57:19 CONSOLE:[SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 04:57:19 CONSOLE:[SEVERE] at java.net.URL.openStream(Unknown Source) 04:57:19 CONSOLE:[SEVERE] at de.intense_programming.bukkit.realtimerotation.TimeUpdater.retrieveLunarIndex(TimeUpdater.java:385) 04:57:19 CONSOLE:[SEVERE] at de.intense_programming.bukkit.realtimerotation.TimeUpdater.loadConfiguration(TimeUpdater.java:89) 04:57:19 CONSOLE:[SEVERE] at de.intense_programming.bukkit.realtimerotation.TimeUpdater.run(TimeUpdater.java:145) 04:57:19 CONSOLE:[SEVERE] at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:53) 04:57:19 CONSOLE:[SEVERE] at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 04:57:19 CONSOLE:[SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:522) 04:57:19 CONSOLE:[SEVERE] at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) 04:57:19 CONSOLE:[SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) 04:57:19 CONSOLE:[SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) 04:57:19 CONSOLE:[SEVERE] at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) 04:57:19 RealTimeRotation:ErrorCode: #2001
-
View User Profile
-
Send Message
Posted Jul 31, 2013@FlOppythp
I'm happy that you like it. The time-modification is set in this particular way to prevent an artifact at midnight. For your particular case the day will last 8 hours. How it is uses is documented in the configuration. Anyway, you could also say: you use 3 as the modifier so 24 / 3 = 8 (8 hours).
Hope this information does help you :)
The modifier is as I said this way to prevent artifacts. You can only chose a length of the day that in the end can sum up to 24 hours.
-
View User Profile
-
Send Message
Posted Jul 3, 2013Can you please make you can configure in which worlds you want the time to be real-time? Thanks!
-
View User Profile
-
Send Message
Posted Jun 24, 2013@elcamo12
Yeah, I will PM you
-
View User Profile
-
Send Message
Posted Jun 24, 2013@rfsantos1996
Please be patient till the next version arrives.
I will by then implement a debug-mode you can define to be activated in the config which gives you informations about the plugins state.
You got a skype-account or something else i can contact you with (instant massaging)?
-
View User Profile
-
Send Message
Posted Jun 24, 2013Yesterday: (real = minecraft) 17:09 = 17:10
Today: 11:00 = 08:04 (without changing the config file, just auto-restarting the server)
-
View User Profile
-
Send Message
Posted Jun 23, 2013@elcamo12
Yeah, if anyone complain about it, i will tell you (;
Very nice plugin, thanks for the update (;
PS: could you add /timerotation reload? >.>
-
View User Profile
-
Send Message
Posted Jun 23, 2013@rfsantos1996
Just checked it and found out that three of my 9 saplings took only about 2 or 3 minutes to grow.
-
View User Profile
-
Send Message
Posted Jun 23, 2013@rfsantos1996
Well my girlfriend grows trees all the time since she wants to build some kind of hotel made of planks and so on.
Guess she would have mentioned this to me.
I will look for it though, but if there is a bug of that kind, i already have in mind where it comes from, and would be able to fix it though. I'll keep an eye on it.
-
View User Profile
-
Send Message
Posted Jun 23, 2013@elcamo12
Very nice (;
Also, one of my players were complaining about trees don't growing, dont know if it is related to this plugin
@EDIT: tested myself, my players are strange >.> Ignore this about trees
-
View User Profile
-
Send Message
Posted Jun 23, 2013@rfsantos1996
I figured out the problem, will be fixed with the next update.
Remember that ingame-clocks may not display the correct time, since this plugin messes around with the mc-time quiet a lot to accomplish a real night/day ratio.
Also with this i will implement some performance-updates. You will be able to set the ticks, but,... this will only limit the calculation, so anyway every tick will be used. Also only every configured tick will calculate the time. I think calculating the time is the most time-consuming operation of the whole process.
Next update will be uploaded in approximately 20 hours, so don't miss it ;)
This will probably be the first stable release of the mod, since i then will be satisfied with the mod as a whole.
-
View User Profile
-
Send Message
Posted Jun 22, 2013Hi, i live in Brasil, and the time here is 20:10, and in the server it shows 21:30
Here's my config: http://pastebin.com/r4h9dvma (latitude and longitude set to Sao Paulo), GMT -3 and timemodifier 1
Also, you could create an config to change the delay beetween runs (update), 1 tick delay is making my server a little laggy
-
View User Profile
-
Send Message
Posted Jun 22, 2013@MCwolski
It currently cant, but there is not reason to do not write this on my todo-list.
-
View User Profile
-
Send Message
Posted Jun 22, 2013Does it support multi worlds? I want some worlds using minecraft days or different time zones.