StreetLights
Please update from 1.1.x! The /sl remove command isn't save! It allows you to remove other peopel's streetlights. It's fixed in 1.1.2
General
Always wanted to get working streetlights in your server? Now you can! Pick the lights you want to light up at night and presto! They will light up when it rains or when it's night.
By default the blocks will be Redstonelamp (offstate) at day and Redstonelamp (onstate) at night. The time they will be on is from 13000 till 0. These can all be changed in the config.yml (Version 1.0.2) To add multiple set of items to switch from just add a new line with two materials. (Please note that you shoudln't use duplicate materials)
Installation
Pretty straight forward here: Place the jar file in your plugin directory and you're good to go.
OP's have all permissions by default but if you want players to control the lights as well please give them permissions:
- streetlights.* (Everything EXCEPT: streetlights.admin)
- streetlights.admin (Allows the removal of other's streetlights)
- streetlights.create (Allows to create new streetlights)
- streetlights.remove (Allows to remove new streetlights)
- streetlights.save (Allows user to save the list with lights)
- streetlights.list (Allows user to view coordinate list of lights)
- streetlights.clear (Allows user to clear all the lights)
- streetlights.reload (Allows user to reload the config file)
- streetlights.info (Displays info about the clicked streetlight)
How to use
Create a Redstone lamp and use "/sl create" command. Then rightclick the blocks you want to light up at night (Redstone Lamps by default). When you're finished adding the lamps type "/sl create" again. If you wish to manualy save you can use "/sl save". (The list will automaticly save after every placed or removed streetlight). You "/sl remove" to remove streetlights from the list :)
Bugs
- Natural rain sometime doesn't trigger the lights.
- You cannot use REDSTONE_TORCH_OFF.
Can we see it in action?
I've created this timelaps on my server which shows the streetlights going on and off.
http:www.youtube.com/watch?v=EL7MQ2d-H40&feature=youtu.be
Source Code?
The sourcecode is available from GitHub: https://github.com/Koozza/StreetLight
User Videos
Some of the users made video's of the plugin. Here's some of them:
WoopaGaming (English)
MineraftBukkit (German)
TheBukkitTutorialsHD (German)
MinecraftPommes (German)
victormac737 (Spanish)
Special Thanks
Special thanks go to Craftiii4 for helping me with the REDSTONE_LAMP_ON state :)
can u make new feature?:S if chunks not loaded in server memory, lamps are on, but there are no light untill player make something near
@UnitedFactions
Well my SSD crashed, so waiting for the replacement one :P After that ill fix it in 1.1 ;)
error on startup ;)
http://pastebin.com/raw.php?i=kMxLkX5u
@ZzDOMINATIONzZ
Good! Nice to hear you solved it :)
Edit: I am currently working on streetlights 1.1, and with that patch the plugin will be renamed to a more appropriate name ;)
Hey thijsd, I don't know if you remember me, you tried to help me fix your plugin on my server a few weeks ago. Turns out I just needed to update my server lol But I just wanted to post this in case anyone else has the same problem that I had.
@GOHpsycho
Well I didn't have spare time the last few days, but I still plan on adding this as soon as I can ;) So please keep checking once in a while :)
@thijsd
Thanks a bunch! BTW, I love this plugin! It works near flawlessly.
Near flawlessly is only because occasionally, a couple lights may stay on. I'm sure that it's not the plugin itself, but the 1000+ lights in memory :P
@GOHpsycho
If I have some spare time tonight i'll try to add it ;)
Is there a way to put lights on separate lists so:
example:
/sl create INTERIOR
/sl create STREET
/sl create A
/sl create B
INTERIOR set to stay on constant.
STREET set for night and rain.
A set 200 ticks(ect) before B?
@SynonymOfHeat
No, becouse redstone torches won't work :( I cannot keep the state changed (No idea how to code it). So I think it's not possible.
Great plugin! I believe that if you use it with redstone torches, you can activate certain circuits at day or night?
@thijsd
Sure thanks, if that's not too much trouble for you, maybe I'm just not using the plugin right, server will be running over the next few hours, I'll watch for you to join, or you can reply and tell what time you'll join or something, idk but here's the IP
IP: 71.185.245.80:25565
@ZzDOMINATIONzZ
I'm very sorry but I've setup a test server with all your plugins and I can't re-create the error. If you want I can come by on your server to check the problem out and maybe I can figure something out then?
@dockter
Thanks ^^
This plugin is win.
@thijsd
But ok thanks :)
@thijsd
Nope, actually just removed lampstone, lights still don't come on. What else do you think it could be?
@ZzDOMINATIONzZ
Well is lampstone keeps redstone lamps on then I do think it's a problem, but not sure. I'll try to recreate the problem tomorrow :)
@thijsd
- Backup - ChatManager - ChestShop - Citizens - CleanroomGenerator - Essentials - FalseBook - iConomy - Jail - Lampstone - LWC - Modifyworld.jar (Not sure if this is a separate plugin or part of another) - MultiInv - Multiverse-Core - Multiverse-Portals - NoCheat - PermissionsEx - Quester - StreetLights - TimeShift - WorldEdit
I just realized it might be the Lampstone one. I used that for my street lights, and it worked pretty well, but it just stopped working through the updates of the game, and the plugin was never updated. So then I deleted that, or thought I deleted it, and got yours, which seems better btw. So I'm gonna try removing Lampstone, what do you think?
@ZzDOMINATIONzZ
Could you give me a list of plugins you are using? Looks like a collision with another plugin.
Hmm, it's not working...I right clicked the lamps and everything and it said it was added and all, but at night they just flicker on for a second and then go right back off. ??? Help please?