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 :)
Not working on Bukkit for 1.9.x or 1.8.x?
Check out
StreetLights Reloaded
UPDATED TO MINECRAFT 1.9.2!
Looking for an updated StreetLamps plugin? Check out my Pl3xLamps plugin!
Does this still work for 1.6.2?
Edit: Forget it, I'll test it and if it doesn't work, I'll use "StreetLights Reloaded".
I'll continue this Plugin
STREETLIGHTS RELOADED
Does this support mySQL or a database?
@hiimtoby
Did you type the /sl create command a second time? Then you should be able to break them :)
Great plugin, works amazingly! But I was just wondering, is it normal for after I have created a lamp and right clicked on it for me not to be able to break any blocks until I re-log? :) Thanks
Amazing Plugin, Very Useful For My Server.
@DavMicrofix
update..worldguard
still works :3
Update?!
the plugin just making lagg on server -,-
its working but console gives error: Could not pass event WeatherChangeEvent to StreetLights v1.1.2.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_5_R2.CraftWorld.setStorm(CraftWorld.java:685) at com.sk89q.worldguard.bukkit.WorldGuardWorldListener.initWorld(WorldGuardWorldListener.java:75) at com.sk89q.worldguard.bukkit.WorldGuardPlugin.onEnable(WorldGuardPlugin.java:187) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at me.asofold.bpl.cncp.CompatNoCheatPlus.enablePlugin(CompatNoCheatPlus.java:81) at me.asofold.bpl.cncp.CompatNoCheatPlus.loadSettings(CompatNoCheatPlus.java:284) at me.asofold.bpl.cncp.CompatNoCheatPlus.onEnable(CompatNoCheatPlus.java:227) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:301) at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:280) at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:240) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:379) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at com.thijsdev.etc.Functions.togglelights(Functions.java:66) at com.thijsdev.StreetLights.StreetLightsWeatherListner.onWeatherChange(StreetLightsWeatherListner.java:24) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 23 more
21:44:17 [SEVERE] Could not pass event WeatherChangeEvent to StreetLights v1.1.2.1
org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_5_R2.CraftWorld.setStorm(CraftWorld.java:685) at com.sk89q.worldguard.bukkit.WorldGuardWorldListener.initWorld(WorldGuardWorldListener.java:80) at com.sk89q.worldguard.bukkit.WorldGuardPlugin.onEnable(WorldGuardPlugin.java:187) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at me.asofold.bpl.cncp.CompatNoCheatPlus.enablePlugin(CompatNoCheatPlus.java:81) at me.asofold.bpl.cncp.CompatNoCheatPlus.loadSettings(CompatNoCheatPlus.java:284) at me.asofold.bpl.cncp.CompatNoCheatPlus.onEnable(CompatNoCheatPlus.java:227) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:301) at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:280) at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:240) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:379) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at com.thijsdev.etc.Functions.togglelights(Functions.java:66) at com.thijsdev.StreetLights.StreetLightsWeatherListner.onWeatherChange(StreetLightsWeatherListner.java:24) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
jep works just fine.
still works fine for 1.5
still works with 1.4.7
Does this work with 1.4.7?
@lilacorn
to disable creation just do '/sl create' a second time, it's a toggle.
please update, it tends to lag the server a little bit when going on.off and fix to where you can turn off the /SL so we wouldnt have to exit game just to build n etc
Please someone update