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 Jun 5, 2012@NekozePAN
Gonna check why this is happening then :) I assume this is happening when you try to add a new light?
-
View User Profile
-
Send Message
Posted Jun 5, 2012oh... mistake in copy, Actually LineFeed is correct in config file.
-
View User Profile
-
Send Message
Posted Jun 5, 2012I used this plugin first time. and config.yml has no changes from default. conifg.yml is this:
Time_on: 13000 Time_off: 0 On_when_rain: true materials: - REDSTONE_LAMP_ON,REDSTONE_LAMP_OFF lights: []
-
View User Profile
-
Send Message
Posted Jun 5, 2012@NekozePAN
In your config file you should have something like this:
Time_on: 13000
Time_off: 0
On_when_rain: true
materials:
- REDSTONE_LAMP_ON,REDSTONE_LAMP_OFF
Are you sure that the materials line and the line below it are present in your config? :)
-
View User Profile
-
Send Message
Posted Jun 5, 2012Hi. I used this plugin v1.1.0 on CB1.2.5R3.0 then, Error occurs with this messages. Plz fix it all means because I want to continue to use this plugin.
2012-06-05 17:51:03 [SEVERE] Could not pass event PlayerInteractEvent to StreetLights org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:147) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:605) at net.minecraft.server.Packet15Place.handle(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at com.thijsdev.StreetLights.StreetLightsPlayerListner.onPlayerInteract(StreetLightsPlayerListner.java:29) at sun.reflect.GeneratedMethodAccessor26.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:302) ... 12 more
-
View User Profile
-
Send Message
Posted Jun 4, 2012Just finished 1.1 and uploaded it to bukkit. The main page is edited to reflect the changes is version 1.1 . You can get 1.1 here: http://dev.bukkit.org/server-mods/streetlights/files/9-street-lights-1-1-0/
Note: If you find any bugs then feel free to report them :)
Changelog:
New Features:
Changes / Fixes:
Known Bugs:
-
View User Profile
-
Send Message
Posted Jun 4, 2012@xdeathoreox
True, I removed the command but the page is outdated :P Will change the page with 1.1 ;) It's almost done now btw :)
-
View User Profile
-
Send Message
Posted Jun 4, 2012I don't know why you guys get errors. Works flawlessly for me. The only thing that doesn't work is /sl update
-
View User Profile
-
Send Message
Posted Jun 4, 2012It all takes a little bit longer then expected :) Hoping to release tonight.
-
View User Profile
-
Send Message
Posted Jun 2, 2012@Vettexl
Please read the rest of the commends :P It's known and i'm working on it ;) Please check back later this week when I release 1.1
Edit:
Currently fixing the last remaining bugs and cleaning up the source-code :) Hope I can release it tomorrow ;)
-
View User Profile
-
Send Message
Posted Jun 2, 2012This plugin doesn't work at all =/
I use the commands but right clicking the blocks doesn't do anything
-
View User Profile
-
Send Message
Posted Jun 1, 2012@thijsd
If you need help, let me know.
-
View User Profile
-
Send Message
Posted Jun 1, 2012@silentnight18
I hope this week :) Couldn't do much work on it since I had my exams ;)
-
View User Profile
-
Send Message
Posted May 31, 2012ETA on 1.1? Had to disable this plugin on my server due to it crashing my server with tickNextTick IllegalStateExceptions, it kept failing to sync. I hope this issue is fixed in 1.1, I miss my street lights.
-
View User Profile
-
Send Message
Posted May 30, 2012@Spezialeinheit
Yup, will upload the source when I release 1.1 ;)
-
View User Profile
-
Send Message
Posted May 30, 2012Is this Plugin soon on Github?
-
View User Profile
-
Send Message
Posted May 27, 2012@tompa266
I am aware of this problem, and this will be fixed in 1.1 :)
@Spezialeinheit
I think next week, since I'm very busy with exams right now ;)
-
View User Profile
-
Send Message
Posted May 26, 2012When will 1.1 come?
-
View User Profile
-
Send Message
Posted May 24, 2012It crashes my server ... inside the consol it comes a massive error and after a while it closes the consol down. If I start the server and let it run about 10 minutes so the same thing happens again.
(I can not take a picture of the Error)
I think it is the same as Spezialeinheit.
In version 1.2.5-R1.2 (May 15, 2012) (Don't know the other versions.)
-
View User Profile
-
Send Message
Posted May 22, 2012@Spezialeinheit
Just figured what the problem was :) Will fix it in 1.1 ;)
@Hyperion01
Working on it :)