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 :)
-
View User Profile
-
Send Message
Posted May 12, 2012@Bvgfreak
Edit: By any chance, did you manual remove streetlights.bin? (If yes: stop the server, remove it again and start the server again)
-
View User Profile
-
Send Message
Posted May 12, 2012I become an error: 2012-05-13 00:02:54 [SEVERE] java.io.FileNotFoundException: plugins/StreetLights/streetlights.bin (No such file or directory) 2012-05-13 00:02:54 [SEVERE] at java.io.FileOutputStream.open(Native Method) 2012-05-13 00:02:54 [SEVERE] at java.io.FileOutputStream.<init>(Unknown Source) 2012-05-13 00:02:54 [SEVERE] at java.io.FileOutputStream.<init>(Unknown Source) 2012-05-13 00:02:54 [SEVERE] at com.thijsdev.streetlights.SLAPI.save(SLAPI.java:12) 2012-05-13 00:02:54 [SEVERE] at com.thijsdev.streetlights.streetlights.onDisable(streetlights.java:101) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:362) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:399) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:392) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:433) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:522) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.Bukkit.reload(Bukkit.java:182) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) 2012-05-13 00:02:54 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) 2012-05-13 00:02:54 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
-
View User Profile
-
Send Message
Posted May 12, 2012@russjr08
It's already there :) 1.0.4
http://dev.bukkit.org/server-mods/streetlights/files/6-street-lights-1-0-4/ ;)
-
View User Profile
-
Send Message
Posted May 12, 2012Sweet :D We got the problem fixed in a thread, if I'm correct there will probably be an update soon that allows it to toggle between on and off.
-
View User Profile
-
Send Message
Posted May 12, 2012ChestShop.jar Jobs.jar Jail.jar WorldEdit.jar worldguard-5.5.2.jar Vault.jar
that are the plugins i share with you
thanks alot for the 1.0.4 version!
-
View User Profile
-
Send Message
Posted May 12, 2012I try it with 1.0.4!
-
View User Profile
-
Send Message
Posted May 12, 2012@Bvgfreak
A reload should be enough :) Getting any errors or just lights going back off? (And did you use REDSTONE_LAMP_ON? If yes: Try 1.0.4, it should be fixed there.)
-
View User Profile
-
Send Message
Posted May 12, 2012Don´t. Or i have to restart?
-
View User Profile
-
Send Message
Posted May 12, 2012Here are all my Plugins:
-
View User Profile
-
Send Message
Posted May 12, 2012@calaham
http://dev.bukkit.org/server-mods/streetlights/files/6-street-lights-1-0-4/ ;)
-
View User Profile
-
Send Message
Posted May 12, 2012RLY strange, it worked now it is broken again o.o
but yes, i wait for the 1.0.4 update would be rly nice :)
and i hope i can find what makes the script broken, i would list my plugins put i have many. bvgfreak can you list yours so i can see if i have one of them?
-
View User Profile
-
Send Message
Posted May 12, 2012@calaham
Aah, I see. Well Craftiii4 just helped me with code for REDSTONE_LAMP_ON, so if you have a few minutes ill upload 1.0.4 which allows you to use the redstone lamp in ON state :)
-
View User Profile
-
Send Message
Posted May 12, 2012@Bvgfreak: Did you made in the config Redstonelamp_on? that was the problem with mine, and restarting the server helps to
@thijsd i mean that the block redstonelamp_on works to my server uses a diffrent texture for Glowstone and the change betwen Redstonelamp_off and glowstone is massive
-
View User Profile
-
Send Message
Posted May 12, 2012@Bvgfreak
Ask Calaham how he fixed it, I gues its a conflict with another plugin, but not sure.
@calaham
Not quite sure what you mean, the lights should turn automatically at gametime 13000 (sunset) and go back of at 0 (dawn)
-
View User Profile
-
Send Message
Posted May 12, 2012thisjsd
i tried to switch it to on state at night, but i noticed that that dotn work, is there a way to let them powered on at night?
-
View User Profile
-
Send Message
Posted May 12, 2012@calaham
I have the same problem!
-
View User Profile
-
Send Message
Posted May 12, 2012@hawkfalcon
Hah, didn't know that worked :P Why is there a Approval process then? XD
-
View User Profile
-
Send Message
Posted May 12, 2012<<reply 703280="">>
Already has a link ;p
http://dev.bukkit.org/server-mods/streetlights/files/5-street-lights-1-0-3/
-
View User Profile
-
Send Message
Posted May 12, 2012@calaham
By any chance: Do you have BloodMoon plugin? I noticed my lights where flickering when i used that one aswell. (If not: Could you post a list of plugins you're using?)
-
View User Profile
-
Send Message
Posted May 12, 2012[fixed]