StreetLights Reloaded
SHOWCASE
DOWNLOADS
JENKINS STABLE (1.2.2) (Lastest stable from our Jenkins)
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
JENKINS (Almost stable Dev Versions with newest features)
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
TESTED ON 1.9.2!
The plugin is fully compatible to all bukkit releases (including 1.8), so download now to get the ultimative StreetLights experience ;)
Description
With this plugin you can create streetlights with redstone lamps that turn on and off automaticly by themselves.
This project is a continuation of thijsd's StreetLights .
Commands
/sl create (use this to create new streetlights => Use to deactivate creating mode) /sl remove (use this to remove existing streetlights => Use to deactivate removing mode) /sl save (use this to saves all changes) /sl invert (use this to invert streetlights so they turn off when others turn on and on when others turn off) /sl help (Opens the help menu with all commands)
Permissions
streetlights.* (Everything but not: streetlights.admin and streetlights.clear) streetlights.admin (Allows the removal of other's streetlights) streetlights.create (Allows the creation of new streetlights) streetlights.remove (Allows to remove own streetlights) streetlights.invert (Allows to invert 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)
Compability
This plugin is compatible from Bukkit for 1.2.5 to the newest Spigot version 1.9.2.
When I have got no time to update this description you should know, that this plugin is working with all newer (beta/recommended-) releases than 1.6.*!! Working on Libigot #277 1.6.2-R0.1 DEV Release
ToDo
- Fix unstable streetlights change behaviour
NotToDo
- Fix problems for bukkit beta and dev builds
- Turn streetlights added at night on immediately
U R from Germany?
TeamSpeak: IP: ts.CHRONICALS.de:9988
Questions?
Do you have Questions? Then leave a comment!
Try to use Spigot and to unload unused chunks. Than it shouldn't lag too much.
The lag issue is due to switching of the blocks. You can see the same performance loss when changing a lot of blocks using WorldEdit. Its the same concept. I see this on my Pl3xLamps plugin as well and have tried all sorts of ways to mitigate it. Setting up a delay between blocks doesnt relieve any of it and just prolongs the issue. Just spread your lights out farther and try to avoid using too many in the same area. Just like in real life, you dont see hundreds of street lamps bunched up in a small area. They are spread out hundreds of feet apart from each other. ;)
I would love to add this pluging to a server that I'm developing, but I'm worried about the comments I'm seeing concerning lag and performance. Can anyone tell me if the lag issue has been resolved? Thank you!
@ImonlyI
Du musst einfach die Config des alten Plugins mit der neuen ersetzen (falls es einen Ordner-Unterschied gibt, weiss ich nicht mehr :P).
@UnitedFactions @RulingKyle1496
No, sry I couldn't make this yet. I currently don't have my working computer, so I won't be able to bring any update next time.
@fungreenfox
Because it was working for me on the newest release.
Greetings
You should make it so there is a delay between each streetlight toggle. I have these around my spawn and they toggle and cause a lot of lag.
@CHRONICALSde
Why do you ask ppl to update to a newer stable release, when there isn't any?
After deactivating rain from worldguard, i get this at next restart:
04:32:08 [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_6_R2.CraftWorld.setStorm(CraftWorld.java:684) at com.sk89q.worldguard.bukkit.WorldGuardWorldListener.initWorld(WorldGuardWorldListener.java:73) at com.sk89q.worldguard.bukkit.WorldGuardPlugin.onEnable(WorldGuardPlugin.java:200) 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_6_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313) at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290) at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException at com.thijsdev.etc.Functions.togglelights(Functions.java:66) at com.thijsdev.StreetLights.StreetLightsWeatherListner.onWeatherChange(StreetLightsWeatherListner.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 17 more 04:32:08 [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_6_R2.CraftWorld.setStorm(CraftWorld.java:684) at com.sk89q.worldguard.bukkit.WorldGuardWorldListener.initWorld(WorldGuardWorldListener.java:73) at com.sk89q.worldguard.bukkit.WorldGuardPlugin.onEnable(WorldGuardPlugin.java:200) 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_6_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313) at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290) at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException at com.thijsdev.etc.Functions.togglelights(Functions.java:66) at com.thijsdev.StreetLights.StreetLightsWeatherListner.onWeatherChange(StreetLightsWeatherListner.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 17 more
Haii have you made the performance of this plugin any better? I beleive the light change events where a huge performance cost on the servers, and therefor this plugin was not recommended to be used in the past... Have you done anything about that?
Thanks for letting me know!
Greetings
SupaYoshi
@CHRONICALSde
Hi,übernimmt dein Plugin auch die Lampen, die man bereits mit dem originalen StreetLights-Plugin eingespeichert hat? Ich habe hier eine Liste von knapp 1000 Lampen und das wäre mühsam, alles zu übertragen.
Hi, please try to update to a newer/stable release or use Libigot.
Doesnt work for me on 1.6.2 dev
14:28:28 [SEVERE] Could not pass event PlayerInteractEvent to StreetLightsReloaded v1.1.3 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_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:192) at net.minecraft.server.v1_6_R2.PlayerInteractManager.dig(PlayerInteractManager.java:108) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:540) at net.minecraft.server.v1_6_R2.Packet14BlockDig.handle(SourceFile:46) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException at de.chronicals.streetlights.StreetLightsPlayerListner.onPlayerInteract(StreetLightsPlayerListner.java:44) at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more
Hey there,
thanks for your work. It's great. I downloaded it from here(http://dev.bukkit.org/bukkit-plugins/streetlights-reloaded/files/1-1-1-3/) and it works great.