Streetlights Advanced
Streetlights Advanced - Realistic nighttime lights
Streetlights Advanced is the most advanced plugin for lighting up structures like streets, parks, houses or even whole cities at nighttime.
You can choose from a variety of different lamp types that will turn on at sunset and turn off at sunrise. The lamps work fully-automatic once set-up, requiring no redstone at all.
Supported Lamp Types
Redstone Lamp (Redstone Lamp off -> Redstone Lamp on)
Torch Lamp (Redstone Lamp off -> Torch)
Pumpkin Lamp (Pumpkin -> Jack O Lantern)
Sea Lantern Lamp (Stained Glass -> Sea Lantern)
End-Rod lamp (Stained Glass Pane (Pole) -> End-Rod)
Fire Lamp (Wood, Log, Netherrack, Coal Block -> will be set on fire)
Glowstone Lamp (Glowstone Lamp off -> Glowstone)
Redstone Torch lamp (Redstone Lamp off -> Redstone Lamp on)
Setup
- Place a daylight detector somewhere on the map. Right-click it with an empty bowl to set it up as the main detector. You need to have a sensor for each map you have lamps on.
Make sure the detector is away from any source of light. - Right-click any lamp block you want to add or remove with an empty bowl. Streetlights Advanced will now fully-automatically activate this lamp during night.
For a more realistic look, the lamps will go on or off one after another just like an electric signal spreading down the road.
Commands
- /lights how - Help command
- /lights commands - List all commands
- /lights save - Save Streetlights database
- /lights reload - Reload Streetlights database (save before!)
- /lights clean - Clean Streetlights database from bad entries (dead lamps and sensors)
- /lights turn on/off/auto - Manually control the lamps on this world. Auto is the default automatic setting
Permissions
- streetlights.* - All permissions
- streetlights.register.all - Permission to register / unregister ANY Streetlights lamp (admin)
- streetlights.register.own - Permission to register / unregister ONLY OWN Streetlight lamps
- streetlights.sensor - Permission to register the main daylight sensor Streetlights uses
- streetlights.save - Permission to save Streetlights database
- streetlights.reload - Permission to reload Streetlights database
- streetlights.clean - Permission to clean Streetlights database
- streetlights.control - Permission to manually control the lamps
By default, OPs have all permissions and all users have the permission streetlights.register.own (to set up own lamps but not interact with others)
Configuration
- Activate at level: Choose the light level at which the lamps should to turn on at night. Minecraft light levels go from 0 (fully dark) to 15 (fully bright), 7 (sunset) is default.
- Delay: Lamps are activated one by one with a small delay. Specify how long this delay should be in ticks (20 ticks = 1 second). You can choose from 1-60 ticks, 3 is default.
- Play OFF Effect: If an extinguish effect should appear when lamps turn off
- Play ON Effect: If a light-up effect should appear when lamps turn on
- Clean on start up: If the database should be cleaned from unused entries on every restart
- Auto save: If the lamps should be constantly saved and not only at server restart. Enable this only if your server crashes a lot, so your newly added lamps are not lost.
The rest of the config file is maintained by the plugin itself! Do not modify these values!
Troubleshooting
Try these steps if something is now working, or write me an Email to: [email protected]
- make sure you have set up a daylight sensor for the world you're in (right-click with empty bowl)
- make sure the daylight sensor is placed below the open sky (can detect environmental light) and has a good distance to any other light source (>10 blocks)
- recreate the config file (streetlights.yml) by renaming or deleting it
- try "/lights turn on" or "/lights turn off" and see if this works. If so, use "/lights turn auto" to reset the lamps into auto mode
- do you use a multi world plugin (multiple worlds)? By now, only Multiworld and MultiVerse (Core) are supported, leave me a PM to include other plugins
- have a look into your server console - is there an error log? Please post it in the comments (especially if it reads Auto-updater failed)
Video Reviews
https://www.youtube.com/watch?v=RjHvkbro9kQ&feature=youtu.be (by jithin s)
Questions, suggestions or waiting for an update?
Write me a PM directly via the bukkit forums or contact me via Email: [email protected]. You can also post any bugs or good ideas in the comments section below.
STAY TUNED GUYS - A major update to Streetlights is in final testing and will be released by 31st of December!
I collected all your ideas and bugs I could get and fixed them as best as possible. The whole system has been completely redesigned and is now hugely improved, in terms of performance and features!
The most important things to change:
Hope you are as thrilled as I am about the upcoming update
- Regenwurm97
@702Smurphy
@meizme
I'm sorry it took me so long to update the plugin. Anyways, your waiting will be rewarded - I just posted the update for 1.10 and 1.10.2! It will be approved in some hours so you can finally use it on the new minecraft versions! :)
Cheers, Regenwurm97
1.10.2 update any time soon?
1.10 broke it. Please fix ASAP!!
@PsychoNavigator
Hey there!
Thanks for your bug posts and your E-Mail. I will test the plugin again and see if I can recreate the bugs you told me.
For your latest message (the one with the console error) I can already tell that you are using the wrong version of WurmStreetlights for your specific bukkit version. The thing is simply, that I didn't update the plugin by now. But thanks for the notification, I will do so in the next days :)
You will always have to look in the download section for the very specific file that reads "for Bukkit X.XX", other versions won't work :)
Updated to 1.10 and getting this error in console.
Another issue raised up is that I'm having to manually reload the plugin after server restarts by doing /lights reload, as players can't add new lights to the setup.
There seems to be a duplication exploit when breaking registered lanterns. They return on the next cycle. So might be good to force a block check before replacing the block with the activated/deactivated.
It's not major as it forces a player to wait for time change to work, but still.
@lyricalnight
Thanks a lot, I really appreciate this. It's totally okay, I mean, it's my "job" as a plugin developer to make sure everything works fine :) So I'm very glad it works now on your server. And I could also learn a lot about possible problems and updated the troubleshooting section :D
So was a pleasure to help you. I will update the plugin for Bukkit / Spigot 1.9 in the next days (MC 1.9 was released yesterday)
Just one last thing: You might want to duplicate the streetlights.yml and save a copy under the name streetlights_BACKUP.yml or so. Because if the file ever breaks, 1200 lights are a lot to register again
That's it man, You fixed it. I am sorry, I have been doing this server thing for my kids from 1.6.2 up to now and I still have a lot to learn about it. You sir have been a trooper walking me through all of this and finding the problem. The lights are working great. I put our city hub back on the main Mineworld map and replaced over 1200 lights with your plug in. I must say it is some thing to see when the sun goes down. Thank you so much for all the help. I hope you go on to make even more great plugins like BBQ and Street lights.
@lyricalnight
Thanks for sending me your server package.
Firstly, your version isn't 1.8.9. Your server is actually running on 1.8_R0.1 How can you find that out? Simply type /version and you will see, that the implemented API version is 1.8_R0.1. So on the right side, you will have to download the following file: "WurmStreetlights 2.0 for Bukkit 1.8 (1.8_R01)" This is the direct link (just to be sure): http://dev.bukkit.org/bukkit-plugins/wurmstreetlights/files/3-wurm-streetlights-2-0-for-bukkit-1-8-1-8_r01/
I used this version and set up 4 lamps + registered them with a bowl. Then i placed a NEW daylight sensor and registered it, also with a bowl. When I turned the time to night and everything worked just fine. So there's no bug in the plugin, it works when I tried it on your server.
However, I found something strange when I looked into your streetlights.yml: At the location x: -244.0 y: 102.0 z: 181.0 there is no daylight sensor. Please place one anew and then register it again :)
Go try it again with the new version link I sent you (and delete the old one). Then set up some lamps and the daylight sensor again. If it still doesn't work, do not unregister any of them but send me a screen of "wurmstreetlights.yml" again :)
I wish it was as simple as me not setting the redstone lamps.
http://i65.tinypic.com/ok1idc.png
@lyricalnight
Oh well your YML looks weird. I mean, there are no streetlights locations listed under the section "Locations: Mineville:". The 0/0/0 is a default / test case, but usually, there should be the redstone lamps you registered under that one listed as Vectors. Could it be that you are somehow not setting the redstone lamps correctly? You will simply have to go to a redstone lamp, take an empty bowl into your hand, and RIGHT-click the lamp WITH the bowl. You will see a green message (!) saying that the lamp was registered. And if you right-click it again, it should be removed again. So do these confirmation messages really appear?
If the bowl somehow doesn't work for you, stand on top of a redstone lamp and type '/lights register' You should see a green confirmation message.
Do this with all your lamps you want to set up and reload the server. Then try the plugin again and if it still doesn't work, send me your screenshot again. You will not have to post me a server image as it looks like by now :)
Maybe you start by deleting the whole folder "WurmStreetlights" again and let it rebuild itself. Then go follow the steps I told you to set up the lamps.
It does not say anything about what lamp is being used just the cords. I am using redstone lams for the street lights. I did have anticheat but I removed it and nothing changed I will look for a way to just post the whole server to you and you can see it for yourself.
http://tinypic.com/r/xek8cj/9 The site does not let us use BBC so a screen shot of my yml is uploaded to tinypic, that is what the link is to
@lyricalnight
And in the streetlights.yml, are you sure the locations that were saved by the plugin are redstone lamps? So could you double-check the coordinates in that? Do you use any Anti Cheat plugins by the way?
Well I tried every version even the 1/7 that I knew would not work. There are no errors for the Streetlights plugin in my server log. I would post it but it is a huge chunk of text. The BBQ plug in works perfectly, Seems I was just not meant to get this one working. Sorry for the delay in responding, I was working late all this week
@lyricalnight
Oh ok this really sounds like you are using the wrong version. Could you take a look into your server log? Because there should be an error message there. If there is, then you should try any of the other versions for servers.
There are multiple versions of WurmStreetlights and they are all highly specific for the version of Bukkit they work with! You can find all of them here or on the right-hand side: http://dev.bukkit.org/bukkit-plugins/wurmstreetlights/files/ The names always contain the Bukkit versions they work with (like WurmStreetlights 2.0 for Bukkit 1.8.3 etc.). Be sure to download this version of WurmStreetlights again: http://dev.bukkit.org/bukkit-plugins/wurmstreetlights/files/6-wurm-streetlights-2-1-for-bukkit-1-8-6-1-8-9-1-8_r03/ Delete the one in your plugin folder and replace it with the newly downloaded. This version is supposed to work with 1.8.9, but if it still doesn't you will have to send me the error in your console log file so I can figure out what's wrong.
Well I tried the manual commands and it gives you the line text telling you they are on or off or on Auto but they do not turn on. My server is running 1.8.9 I have not changed any of the yml settings as you stated on your plug in that 7 was a good value. What versions of minecraft does this work with? Is it not updated for the latest version yet?
@lyricalnight
But does the manual mode work? So if you write /lights lights on, do the lights turn on (and likewise with off)? Because if not, then you probably have the wrong version of WurmStreetlights for your server. Take a look into the server console after manually turning them on / off, if it still doesn't work.
And on what lightlevel is the "activate at light" value in your streetlights.yml config?
Sure we will get it to work :)
Nope, I checked it both ways, I place the daylight sensor away from any other lights, Click it with the bowl and it gives me the line text that it has registered the daylight sensor, Yes I have tried it as both daylight sensor and night sensor. I then place the red stone lamps and click on those with the bowl, getting another line text that the lights have been registered. When the sun goes down, nothing happens, when the sun comes up, nothing happens. Seems like a cool plug in I will keep trying to get it to work