Is there a plugin to tell what time it is in my SMP server (time in game) without changing the time? I'm hoping for a plugin, and not a mod like Single Player Commands that I have to compile into the server .jar. My other idea is to parse the logs for the last time someone used /time and figure it out from there.
Tell me more
×
Arqade is a question and answer site for
passionate videogamers on all platforms. It's 100% free, no registration required.
|
Figured it out. The data is in the level.dat file. Assuming you're using Python, here's a code snippet that should get the current time (run "sudo pip install nbt" first):
For bonus points, you can change the modulo to a division sign and get how many days it has been since you started. |
|||
|
|
/time add 0do? I can't check right now but that could be what you want. – fredley Jan 30 '12 at 15:58