LumosMaxima
LumosMaxima is a lightweight plugin which allow your users to light their redstone lamp rightclicking them with an item (flint&steel by default), and without powering it with redstone.
The plugin's name was found by one of my moderators, TenshiArakawa, I think it's useless to specify where the reference is coming from :D
Prerequisites
You need a recent build of craftbukkit (#2034+). All recent builds are downloadable here : http://dl.bukkit.org/downloads/craftbukkit/
There is currently no plugin dependencies, default bukkit permissions system is used (but PermissionsEx works with it).
Install
The installation is very simple : put LumosMaxima.jar in your plugins directory and restart or reload your server.
Config
The config file (plugin/LumosMaxima/config.yml generated on first load) lets you :
- [activatorItemID] Configure the item which can light up a redstone lamp.
- [allowOnlyPermitted] If you want to allow this feature to specific users who have the "lumosmaxima.poweron" perm ("true") or not ("false").
How to Use
Simply right click a redstone lamp with a flint&steel (or item specified in the config file), and enjoy the light !
There are anyway some technical restrictions :
You can't light up a lamp located below the 4th block level.The 3 block underneath can't be a "special" block (chest, dispenser, furnace, noteblock, ...)- Since the 1.1 version, you can light up any lamp at any position without underneath block restrictions.
- If a redstone component is near the RedstoneLamp, it will finish by turning off, so don't place any button or lever near a plugin-activated lamp (pressure plates can be placed anyway).
Permissions
This plugin uses the default permissions system, but many permissions plugins hooks themselves to the Bukkit permissions (e.g. PermissionsEx). If you want to enable the permissions check, you have to set the "allowOnlyPermitted" config value to "true".
Permission node : "lumosmaxima.poweron"
Coming soon ?
Nothing is planned at this time.
Some notes
- The plugin ensures that the Lamp will not light off if any block is placed around, so if you disable the plugin, redstone lamps will not remain lighting forever.
- Redstone Lamps controlled by redstone systems will work exactly as the vanilla does. Excluding the pressure plates (because they are placed for decoration and extremely rarely in case of direct lamp activation systems).
Changelog
Version 1.1
- Deprecated "allowOnlyOps", new config option : "allowOnlyPermitted"
- Added permission "lumosmaxima.poweron" in case of "allowOnlyPermitted" is set to "true".
- Found another way to light up, so there is no longer restrictions, you can power on any lamp at any position.
Version 1.0
This is the first version, yes, the first !
How can I show you that this plugin is usefull for me ?
You can post a kind comment below, don't hesitate to make suggests or remarks ;)
If you encounter a bug, you can report it on the "Tickets" tab, after checking if that bug was not reported before.
@richie3366: Merci beaucoup:)
@richie3366
Update no good bud.
In Craftbukkit #2703 1.5.1-R0.1, the plugin doesn't work...
14:31:53 [SEVERE] Could not pass event PlayerInteractEvent to LumosMaxima v1.5.0 .0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at org.bukkit.craftbukkit.v1_5_R2.event.CraftEventFactory.callPlayerInte ractEvent(CraftEventFactory.java:181) at net.minecraft.server.v1_5_R2.PlayerInteractManager.interact(PlayerInt eractManager.java:376) at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java :635) at net.minecraft.server.v1_5_R2.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292 ) at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java :113) at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:5 80) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:2 25) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:4 76) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java :409) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:5 73) Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_5_R1/CraftW orld at fr.richie.LumosMaxima.LMListener.switchLamp(LMListener.java:87) at fr.richie.LumosMaxima.LMListener.onPlayerInteract(LMListener.java:67)
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.ja va:425) ... 16 more
Hey richie,
This plugin doesn't play well with Redstone Blocks. The redstone blocks are able to turn on the lamps indefinitely just like flint&steel. This messes things up for piston light switches etc...
I've decompiled the plugin and fooled around with the code, if I find a solution, I'll let you know. :)
I updated the plugin for the 1.5 update, I hope it will be approved soon.
In case of you're in a hurry, here is the link to the jar file :
@Spezialeinheit
No data is stored, the plugin just changes the ID of the block, and blocks the block-update event [excepted if this is a redstone-update].
So it's "not" possible to add the feature you're asking for... but it's not impossible to add this as an option for the next version... [but this will apply only to the future plugin-activated lamps]
Hello, i have 2 Questions:
Where is it stored that a lamp is lit or not lit? Textfile?
Can you add the possibility of a lamp is not lit on the day? But the light is on in a thunderstorm and off at night?
That would be great! :)
And voila (yes, I love this french word in english sentences :D)
Here is the updated version for 1.4.7 (because the approval delay is too... no, i don't want to be blamed by mods :p) : http://dl.dropbox.com/u/22298537/Plugins/public/1.4.7/LumosMaxima.jar
@FlashLight32
@jacklink01
Wooops, ETA = 2h (time to motivate myself : 1h45 :D)
any ETA on next version for 1.4.7 pls :)
Needs an update for 1.4.7!
Thanks!
Thank you so much for the update! Love this plugin
Thanks for updating in such a timely fashion. Much appreciated. I love the plugin.
Update sent, but needs approval...
Awaiting it, I post the link to the french topic : http://bukkit.fr/index.php?threads/lumosmaxima-que-la-lumi%C3%A8re-soit-d%C3%A9finitivement.849/
@richie3366
Broke with the latest builds :( I hope you update.
Best to update on the 1.3.1R2 bukkit man.
Some event api has changed. THey can be async now on the build i heard..
SO must check the isAsync method. If so do a scheduled task on main thread with 0 delay to edit block data that way...
And such
EDIT Can we mark this as a mature plugin. Since it works on a lot of updates.
Plugin très sympa, mais serait-il possible de faire que quand on fait clic droit avec une montre, les lampes s'allument automatiquement la nuit et qu'elles s'éteignent le jour ? Merci beaucoup pour ce super plugin :)
Great plugin Why not add that Redstone Lamps turn off the night and when it rain ? :)
@richie3366
<3 this plugin! :D Beats glowstone at any rate ;) My spawntown would be terrible without it.
@carlosjj
Added in 1.1, see changelog ;) The jar file is awaiting approval from BukkitDev.