SmithChest
SmithChest -Sign and Chest Based Repair Plugin
SmithChest - Sign and Chest Based Repair Plugin
- Version: V1.4
- Required: Vault
- Optional: Towny Advanced
This plugin allow you to create repair shops.All items what have durability can be fixed. If someone use your SmithChest, player who used get charged for amount of money defined in sign above chest, then this money are trasfered to sign owner.Also from chest under sign is taken amount of material defined in config file. For example for gold tools gold ignot is taken per repair.
Features:
- Supports AllEconomy Plugins(Vault)
- Towny Integration (Optional)
- Create sign and chest repair 'shops'
- All items can be repaired
- Support PEX(other permission plugins should work to)
- Good for Role-Play Servers
How create SmithChest:
Place a chest where ever you want and sign ABOVE it.
- Line 1 = [SmithChest] -This line need be exacly same!
- Line 2 = Type - Item ID or Material(WOOD/STONE/IRON/GOLD/DIAMOND/CHAIN/LEATHER/BOW/FLINT)
- Line 3 = Price - This is the Price that you have to pay to repair your tool. Example: 50
- Line 4 = Blank! - Leave this Blank!
If you type Material it will repair all items what are made from this material
If you use Item ID it will only repair item with that ID
Admin SmithChest: Same as above but chest is not required and
- Line 4 = A
- If you have permission it will create Admin SmithChest ,If you dont it will just say line 4 need be blank.
- Admin SmithChest dont need meterials inside chest and dont give earned money to anyone.
It should look like this
Permissions:
- SmithChest.use -allow use smithchest
- SmithChest.create -allow create smithchest
- SmithChest.destroy -allow destroy smithchest sign that its not created by you
- SmithChest.create.admin -allow to create Admin SmithChest
This is my first plugin. If you have any comment / suggestion, please leave a comment on this page.
SmithChest v1.3
- Admin SmithChest dont need chest anymore.
That part does not work for us.
How to fix it?
@YankeSPL
Do you have a temporary link by any chance? :)
EDIT: Also a big thank-you for this.
I uplouded 1.3(need aproval) after heavy testing with friend.We dont haved any errors in console :).Also now admin smithchest dont need chest.
Smithchest error when owner is offline is fixed.
And i added that you can RightClick and LeftCLick sign now so Efficiency IV wont break sign now
@YankeSPL
Cheers for the constant and rather fast support :)
@rhinez0r
I found what cause SmithChest not working when owner is offline. I will fix it in next release.
About Enchanted Diamond Pick, Regular Iron Shovel, Regular Bow I repaired it without errors,in my server i dont have errors either.
This error can be connected with owner offline thing.
I will try release 1.3 tomorrow.
Also: players report that the smithchest works FINE when the owner is logged in. Is this as designed?
@YankeSPL
Hi Yanke,
This error has happens with: Enchanted Diamond Pick, Regular Iron Shovel, Regular Bow
I updated to latest release with these errors:
[SEVERE] Could not pass event BlockDamageEvent to SmithChest org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441) at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockDamageEvent(CraftEventFactory.java:204) at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:139) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:535) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NullPointerException at me.yankes.smithchest.SmithChestRepair.Cdur(SmithChestRepair.java:235) at me.yankes.smithchest.SmithChestRepair.Itemfix(SmithChestRepair.java:124) at me.yankes.smithchest.SmithChestRepair.onBlockDamage(SmithChestRepair.java:45) at sun.reflect.GeneratedMethodAccessor69.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:301) ... 12 more
@YankeSPL
Thank you very much! It's working great now!
@rhinez0r
You get this error when you try use Smithchest with certain item or it just randomly spam errors?
SmithChest v1.2 is working great now.
@rhinez0r
I should mention that reverting back to the first version of SmithChest doesn't give me this console spam and works quite well (minus the bow problem).
Can you please address this issue?
22:46:47 [SEVERE] Could not pass event BlockDamageEvent to SmithChest org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441) at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockDamageEvent(CraftEventFactory.java:204) at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:139) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:535) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NullPointerException at me.yankes.smithchest.SmithChestRepair.Cdur(SmithChestRepair.java:235) at me.yankes.smithchest.SmithChestRepair.Itemfix(SmithChestRepair.java:97) at me.yankes.smithchest.SmithChestRepair.onBlockDamage(SmithChestRepair.java:45) 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:301) ... 12 more
@LogicJB
I fixed bow repair error and uploaded 1.2 version (need be approved)
In v1.3 i will change repair trigger so enchanted pickaxe etc. wont break sign :) And do some code cleanup
I get the same error, but only when I try to repair a bow.
@fonkfader
Same error for me too
error when using sign , craftbukkit 1.2.3 : [SEVERE] Could not pass event BlockDamageEvent to SmithChest org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441) at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockDamageEvent(CraftEventFactory.java:204) at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:139) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:623) at lishid.orebfuscator.hook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:91) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:116) at lishid.orebfuscator.hook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:60) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:443) at java.lang.Integer.parseInt(Integer.java:514) at me.yankes.smithchest.Config.bowrepairitem(Config.java:98) at me.yankes.smithchest.SmithChestRepair.Itemfix(SmithChestRepair.java:186) at me.yankes.smithchest.SmithChestRepair.onBlockDamage(SmithChestRepair.java:45) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 14 more
Hi, I'm a co-admin on a serv, we used left-click to repair and when i try to repair a tool (like diamond pickaxe with efficiency 4) i broke the sign post. Maybe you must modify the button used to repair by right-click
I released SmithChest v1.1(waiting for aprroval) v1.1 Adds admin SmithChest. More info in description :P
@Switch0r
Well i can make admin smithchest what dont need be refilled.And it will only take money for repair :) Im gonna update it tomorrow
About chest protection.It can be protected with plugin like LWC etc. or just worldguard region.
It is working but can you add the server as owner, so i dont need to fill the chest ?
All people can steal the stuff in the chest