TimeLock
TimeLock
Features
TimeLock allows you to freeze the time on any world, so that the world will permanently stay at the time of your choice. This is perfect for creative servers, and anyone trying to create a certain environment for their server.
TimeLock supports multiple worlds, so you may have one world locked at day, one, at night, one normal, or what ever combination you chose.
Modes:
- Always Day
- Always Night
- Normal Time
- Custom Ticks
Permissions
- timelock.admin
Commands
- /tl day (Always day)
- /tl night (Always night)
- /tl normal (Normal time)
- /tl (0-24000) (Lock time at a tick of your choice. Ex: /tl 18000)
- /tl set [world] [time(ticks)] (Lock any world at a specific time (in ticks))
- /tl refresh [time(seconds)] (Change how often TimeLock resets the time
- /tl reload (Reloads the config)
- /timelock (About TimeLock)
Download
Changelog
- 0.6 Updated to 1.7.2
- 0.5b New command (/tl refresh). Plugin no longer runs in async thread.
- 0.4 New command (/tl set), with console support.
- 0.3 Added tick support (/tl 18000 will lock time at 0:00)
- 0.2 Initial Release
Very useful plugin. Am I able to do a server restart and the time to stay the same?
This is a very useful plugin and I like it a lot! :)
@harryjamesuk @tpoo40 I like the idea of adding weather functionality to the plugin. I use this plugin mostly for our SuperFlat world, where constantly setting the time and weather gets annoying. With TimeLock you took one part of that issue away (which I'm grateful for. :)). With weather locking you could have even more control over the environment, with using the same basic interface. So you can set a world to daytime and sunny for building worlds, or night and storming to set the mood/difficulty for survival/adventure worlds. I think the time and weather go hand in hand pretty well. :P
@Minecraftian_Servers True, there are probably other plugins that could do it, but adding it here would mean you could control both settings with one plugin, rather than adding more of them to do the same thing. :)
Also, another thing you might want to do is to take into account what happens when a person tries to set the time on a timelocked world with a regular time command like /day and /night from Essentials. Currently what it does is it goes to day (or night) for a little bit until TimeLock resets it again and puts it back to night (day). I'd say see if you could optionally cancel that command and print out a message saying something like "Time is Locked on this world. Use /tl day (night) to lock to day (night) or use /tl normal to unlock the time."
Releasing update for 1.4.6. Check out the changelog and please let me know if you run into any issues.
Hey Bukkithost, I love your plugin, it's amazing and really needed! Could you please update it to 1.4.6? And I think WeatherLock is kind of silly, after all it is 'Time'Lock. There is other plugins for WeatherLock, so if you could just skip that feautre and update to 1.4.6? ^_^ Maybe add the feautre in a later update or make a 1.4.6 non-bugged version of TimeLock! :)
please add weatherlock and update to 1.4.6
@harl
Oh you :P
@harryjamesuk
I'll look into it, but no promisses. This is TimeLock after all :)
In the update could you maybe make Weather Locks if possible?
@BukkitHost Can't wait, sounds like a plugin i could use for one of my worlds on the server :D
@BukkitHost Use TimeLock for that. ;)
I'll be updating this soon, just need to find some time.
I have a problem, this worked fine for quite a while on my server (months actually) and now it updates the time correctly but then quickly goes back to the previous state. For example, my world is set to day or 6000 ticks. As the sun moves normally, it gets reset by the plugin, but then, more times than not, goes right back where it was. This eventually leads to it becoming night time with flashes of daylight for like 1 second.
I am running Tekkit version 3.0.5 I believe. The thing that gets me is that this worked for so long, and without change, decided to no longer work. Maybe has to deal with the increased world size?
2 bugs:
would it be too much to ask JSONAPI support? i could make calls to the plugins methods if i could see the source, but since thats not available can we expect it for the developer?
is there a way to set it so it dosn't keep refreshing it every 5 secconds.
Like make it update every seccond or half a seccond
@imilkywayz
Yeah, i'm thinking that too. Not much of a problem, we have Skript on our server too, which can do the exact same thing as this.
@ray73864
Author uses a Async repeating task with a bukkit method which is not thread safe, 95% sure it's what is causing your problem.
@VariousArtist
This still seems to be an issue
oh, and our version as listed by /version:
This server is running CraftBukkit version git-Bukkit-1.3.2-R0.1-2-gb02da27-b2355jnks (MC: 1.3.2) (Implementing API version 1.3.2-R0.2-SNAPSHOT)
our config.yml file for TimeLock:
'Dungeon' is no longer a loaded world on our server, is it possible that is causing the issue?
@BukkitHost
Not running any commands at all. We set timelock up to have it always day in a couple of our worlds.
The error message shows up on occasions, not all the time, just sometimes.
Got it again earlier too: