RWtorchLight
RWtorchLight
NOTE: If you like the plugin, tell me in the comments along with your server's IP. I might give your server a visit.
Light up your surroundings just by holding a torch
PLEASE, IF POSSIBLE EDIT CONFIG AND RELOAD PLUGIN BEFORE USE
This data is used to check the amount of people using the plugin. Its sole purpose is so that I and others may visually see the success of the plugin. You may turn it off if you prefer.
Great for Hunger Games and Survival servers
Created for my tekkit server: RWtekkit (R.I.P.)
If you wish, you may DONATE which will help support me and the plugin
Features:
- Use a torch without placing it (editable in config)
- Emit light from boots (editable in config)
- Emit light from helmet (editable in config)
- Client side glowstone follows underneath the player
- Turn light devices on/off with a command (editable in config)
- No client side resources (like spout) needed
- Supports Tekkit and detects it automatically
- Left-Click to revert a block manually
- Trick-or-Treat mode (more info below)
- When I join the server, the game will notify you that I created the plugin
1.7.10 Compatible!
TO
1.2.5 Compatible!
Requirements:
- Any Permission Plugin
Permissions:
- RWtl.allow -Lets the player use the plugin
- RWtl.boot -Allows player wear boots to emit light (if RWtl.allow is in use)
- RWtl.halloween -Activates Trick-or-Treat mode (without RWtl.allow, no light is emitted, but cookies are still provided)
- RWtl.helmet -Allows player wear a helmet to emit light (if RWtl.allow is in use)
- RWtl.info -no longer has purpose
- RWtl.torch -Allows player to use a torch to emit light (if RWtl.allow is in use)
Config:
- BLANK_Use: true/false Will toggle use of the feature written in the place of BLANK
- BLANK_Item: # Will set the id of the feature defined by BLANK to the number defined by #
- Command_Off: true/false Should the player have to use a command (/torch) to turn lights on, or should it be automatic (off = no command)
- Light_Block: # Defines block that will appear when a BLANK item is used.
- Meta_Data_LB: # Defines the item's meta data (for black wool [35:15] the meta data is 15)
- Trick-or-Treat mode: true/false Enables/Disables Trick-or-Treat mode
- Chance of Cookie: # How often a player gets cookie(s) from Trick-or-Treating (every time they move) 0 = off
- Number of Cookies: # Will give the players a random amount of Cookies from 1 - # (when Chance of Cookies occurs)
- Check for updates: true/false No longer has purpose (Formerly checked for updates and only remains for old version compatability)
Commands:
/Torch -toggles the light emmiting devices (has a glitch that leaves last block on ground) (right-click block to revert)
Trick-or-Treat mode usage
- First equip a pumpkin to the helmet slot
- Then walk around you will notice a redstone lamp will follow beneath you
- After that, if Cookies are in use (see config) the following will happen
- You will get cookies after a while of roaming around with the pumpkin on
- The number of cookies varies from 1 - 4 (or whatever was defined in config)
- A message will tell the player they got # cookies
DEMOS/REVIEWS:
MY SETUP/USAGE TUTORIA (Still Relevant)L:
REVIEWS:
CURSE NETWORK's (BukkitDev managers) Plugin Spotlight (Written review) [V-1.H2]:
WOOPA GAMING (Woopa's gonna woop) [V-1.H2]:
FIRST REVIEW [V-1.0.4]
If you want to make a better video, go ahead and I will put it here.
Planned:
- Up to 5 different items that can emit light (3 of 5 so far)
- Manual reloading (for the one client only)
- The more torches you hold, the greater the light
- Water dilutes light
- Perm node to allow the torch work in your main inventory (or similar) (to allow for better PVP)
- Ability for torches to melt ice and snow
- Experimental light without block tests are being done (no more glowstone)
Known Bugs:
May cause end spawnpoint to be random in 1.5 and above(fixed?)Can walk across water/lava when holding "SHIFT"(Thanks AfroChikken)- Sometimes glowstone fails to revert on the client(log off and on to fix) Rare plugin conflict. Re-investigating
- Blocks with high secondary numbers
(tekkit and mods only)(fixed for tekkit, but some non-tekkit mods will still cause this) like 60:48 or 10:995 create mini-client side chunk errors Pointless error reports with slabs and lillypads- Certain blocks turn to glowstone (mostly newer blocks)
- When using the new /torch command, the glowstone block will remain once turning it off (until right-click or turned on)
- based of Lantern 0.1 and TorchLight+
Source is in the jar file (not necessarily that version of the plugin)
Special thanks to all those who donate
@snitride
It seems you have a seprate problem. I am developing a compatibility mode that hopefuly will fix these problems. I am mainly focused on the current builds but hopefully this setting will help
Hi there,
with latest devbuild from Crafbukkit my console gets flooded with following errors, pastebin
Greetings, snitride
Hey, i made a little video showcase on your plugin :) Hope you'll like it!
Link to video: http://youtu.be/PR-D9gJjc78
@snitride
This should now be fixed.
@TheCoryGuy
if your server uses industrial craft, it may confuse it for a tekkit server. It has been tested with tekkit and may incorectly detect spoutcraft at this time. The new release may fix it. If not, wait for the next release with a config file.
Also have you set the correct permissions with a plugin like permissionsex?
you need to add the node RWtl.allow without it, only OPs can use the plugin
I beleve the version now released (if not, the one still being aproved) fixed the bug. I am on vacation now and didnt have time to test it. If you want me to release the builds faster and create even more plugins, donate with paypal to [email protected].
Just use the above DONATE button
If you server owners want me to get the next release out faster, you could donate.
2012-08-19 23:35:26 [SEVERE] Could not pass event PlayerMoveEvent to RWtorchLight org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) 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 net.minecraft.server.NetServerHandler.a(NetServerHandler.java:213) at net.minecraft.server.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign at com.pl.MYCRAFTisbest.RWtorchLight.RWtorchLight.onPlayerMove(RWtorchLight.java:278) at sun.reflect.GeneratedMethodAccessor25.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:330) ... 14 more 2012-08-19 23:35:26 [SEVERE] Could not pass event PlayerMoveEvent to RWtorchLight org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) 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 net.minecraft.server.NetServerHandler.a(NetServerHandler.java:213) at net.minecraft.server.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign at com.pl.MYCRAFTisbest.RWtorchLight.RWtorchLight.onPlayerMove(RWtorchLight.java:278) at sun.reflect.GeneratedMethodAccessor25.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:330) ... 14 more 2012-08-19 23:35:26 [SEVERE] Could not pass event PlayerMoveEvent to RWtorchLight org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) 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 net.minecraft.server.NetServerHandler.a(NetServerHandler.java:213) at net.minecraft.server.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign at com.pl.MYCRAFTisbest.RWtorchLight.RWtorchLight.onPlayerMove(RWtorchLight.java:278) at sun.reflect.GeneratedMethodAccessor25.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:330) ... 14 more
Plugin works alright, but generates massive errors if you go over half-blocks of any type. It's the same error other people are posting below ( could not pass event blah blah blah)
I love these kinds of plug-ins!
However, I cannot seem to get this one to work. I'm running 1.2.5R4.0 with a Spout client.
There aren't really configurations I can change. Any suggestions? :)
Hi there, first of all thank you for this great plugin, very good idea! But i am having a little trouble with your plugin. I am using CraftBukkit version git-Bukkit-1.3.1-R1.0-17-g70314d9-b2337jnks (MC: 1.3.1) (Implementing API version 1.3.1-R1.1-SNAPSHOT) and my console is spammed with "Could not pass event PlayerMoveEvent to RWtorchLight" or something like that, stupid me deleted the last server.log to hastefully.. Also i am getting reports that the framerate of clients even using optifine is crumbling dramatically when using torches. I would be very thankful if you could fix and optimize this. Greetings, snitride
it could be possible, maybe in a future version
i ment the block is visible if you look down but would be not visible for the player if you placed it behind the player.
Well the plugin purpusly doesnt change halfblocks because is would cause a chunk error.
I will make the log not report anything
For your question, i can't get a clear idea on what you mean. Do you mean that the light apears also when holding a glowstone block?
The plugin doesnt change the block itself which is not realy a problem but noteworth
and i got a question:
could you add a option to set a following glowstone maybe? that would take it out of the sightrange of the players, it might couse some problems with 3rd person but still could be nice
@WooJoo
I will make sure to fix that
Does any noticeable error occur in-game or is that message just appearing in the console without an actual error?
the plugin generates this on crossing a Netherhalfblock : 12:26:37 [SEVERE] Could not pass event PlayerMoveEvent to RWtorchLight org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:332) 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 net.minecraft.server.NetServerHandler.a(NetServerHandler.java:213) at net.minecraft.server.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at org.getspout.spout.SpoutNetServerHandler.d(SpoutNetServerHandler.java :173) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ClassCastException
Nice :)