This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.
DispenserRefill helps you keeping your Dispensers and Droppers filled at all times while allowing maximum control over the process.
Automatic Refilling
Cooldown Times
Readable database files
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.
Download WorldEdit and extract the WorldEdit.jar into your "plugins/" folder.
Give out permissions (full list available below; give dispenserrefill.* for all).
Run your server and DispenserRefill is installed.
Development
You are interested in working on the next big thing in the Bukkit/Spigot universe? No problem! Contact us at [email protected] and tell us a little bit about you.
Alternatively feel free to fork our repository at GitHub to get your changes added to the official DispenserRefill builds.
Commands
/autorefill [cooldown] - Changes the container mode to infinite
/refillcooldown - Prints out the remaining cooldown time
Permissions
dispenserrefill.general.dispenser - Allows users to create infinite dispensers
dispenserrefill.general.destroy - Allows users to destroy infinite containers.
Make sure there's no torch or button in the way first or anything like that, it sometimes bugs out. Add anything with a small hit-box after the auto refill command.
It sometimes works with it just depends how you're looking, keep on trying you'll eventually get there!
This keeps giving me a "Sorry, only dispensers are allowed to be infinite" error, but I'm pointing my crosshairs at the dispenser I want to be refilled at it keeps giving me that error.
That's already one of my ToDos for the next version which will fix many issues in this plugin (The code is absolutely not sorted and some snippets are just ... well let's don't talk about those). But thanks for your suggestion.
I think I'll use x,y,z and the world UUID/name as hash to search dispensers as I think the plugin should avoid loops in event listeners.
// loop through containersfor(InfiniteContainerdispenser:this.plugin.getContainerDatabase().getContainerList()){
(DispenserRefillWorldListener.java:60)
Could be done faster if you use a HashTable, which has O(1) search time. I don't use this plugin, but I imagine that if you have a lot of dispensers registered and a lot of dispensers firing, this could be quite the drain on the server. You could create a hash function based on the XYZ coordinates of the container.
The downside is that the insertion order is not maintained, so your database could drastically shuffle with a single add.
That's a pretty good idea but I already added something like that to my feature list in our Jira: http://project.evil-co.com/browse/BDR-4
Feel free to make some additions to this issue ;-).
Hey, I know this plugin's called DispenserRefill but do you think you could hoppers to that list too? As I think it would be handy to be able to give infinite arrows as well.
Anyway, I know this plugin's for dispensers so you don't have to, just thought I'd ask!
Not working for me on 1.5 with latest version:
Please update, man! thx
21:57:15 [SEVERE] Could not pass event BlockDispenseEvent to DispenserRefill v1.0.0
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.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at net.minecraft.server.v1_5_R1.DispenseBehaviorItem.a(DispenseBehaviorItem.java:57)
at net.minecraft.server.v1_5_R1.DispenseBehaviorItem.b(DispenseBehaviorItem.java:26)
at net.minecraft.server.v1_5_R1.DispenseBehaviorItem.a(DispenseBehaviorItem.java:13)
at net.minecraft.server.v1_5_R1.BlockDispenser.dispense(BlockDispenser.java:82)
at net.minecraft.server.v1_5_R1.BlockDispenser.a(BlockDispenser.java:110)
at net.minecraft.server.v1_5_R1.WorldServer.a(WorldServer.java:547)
at net.minecraft.server.v1_5_R1.WorldServer.doTick(WorldServer.java:189)
at net.minecraft.server.v1_5_R1.MinecraftServer.r(MinecraftServer.java:553)
at net.minecraft.server.v1_5_R1.DedicatedServer.r(DedicatedServer.java:229)
at net.minecraft.server.v1_5_R1.MinecraftServer.q(MinecraftServer.java:471)
at net.minecraft.server.v1_5_R1.MinecraftServer.run(MinecraftServer.java:403)
at net.minecraft.server.v1_5_R1.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/block/CraftDispenser
at de.akkarin.DispenserRefill.DispenserRefillWorldListener.onDispense(DispenserRefillWorldListener.java:64)
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)
... 16 more
I'm planning to update it as soon as CB hits a usable state (I'm not even sure whether the current CB build will really work with 1.5 clients without problems).
The plugin is not optimized for 1.5 as it is still not ready for productive use. You should stay on 1.4.7 as long as there isn't at least a Beta-Build ...
Just a note: A new version (1.1.0-A2) has been released and will be ready for download on Bukkit-Dev soon (as soon as it get's approved).
Note: You need at least version 1.1.0-A1 (previously named 1.1.0-SNAPSHOT) if your server runs on version 1.4 or above! Additionally 1.5 is untested as there seems to be no stable release available at this time.
Well, it could be caused by some other plugin but I think orebfuscator will not cause such issues as it modifies outgoing packages (if I remember right).
I'll update the plugin if I have the time to do it. Not if you're spamming in the comments section. In the meantime there's version 1.1 which should work on 1.4.7 (I haven't testet it with 1.5 as there's still no stable release which should be used).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Just unpackage the jar and edit the config code by adding in the hoppers an droppers item id's.
Please add Dropper and Hopper
@Incompy
Make sure there's no torch or button in the way first or anything like that, it sometimes bugs out. Add anything with a small hit-box after the auto refill command.
It sometimes works with it just depends how you're looking, keep on trying you'll eventually get there!
This keeps giving me a "Sorry, only dispensers are allowed to be infinite" error, but I'm pointing my crosshairs at the dispenser I want to be refilled at it keeps giving me that error.
@k1ngofgames
You may answer the question by yourself: http://project.evil-co.com/browse/BDR-5 ...
Will dropper support be added?
@falsevacuum
That's already one of my ToDos for the next version which will fix many issues in this plugin (The code is absolutely not sorted and some snippets are just ... well let's don't talk about those). But thanks for your suggestion.
I think I'll use x,y,z and the world UUID/name as hash to search dispensers as I think the plugin should avoid loops in event listeners.
Just a suggestion, but
(DispenserRefillWorldListener.java:60)
Could be done faster if you use a HashTable, which has O(1) search time. I don't use this plugin, but I imagine that if you have a lot of dispensers registered and a lot of dispensers firing, this could be quite the drain on the server. You could create a hash function based on the XYZ coordinates of the container.
The downside is that the insertion order is not maintained, so your database could drastically shuffle with a single add.
@Wolfy10
That's a pretty good idea but I already added something like that to my feature list in our Jira: http://project.evil-co.com/browse/BDR-4 Feel free to make some additions to this issue ;-).
Hey, I know this plugin's called DispenserRefill but do you think you could hoppers to that list too? As I think it would be handy to be able to give infinite arrows as well.
Anyway, I know this plugin's for dispensers so you don't have to, just thought I'd ask!
Thanks!
@dot_start
Sry about that, I totally noticed that it said 1.0, however I was 100% sure that I downloaded the latest build. Its working now ;)
@H8llfire
You're still running on 1.0 ... We're already at 1.1 Alpha 2 YOU have to update ...
Not working for me on 1.5 with latest version:
Please update, man! thx
21:57:15 [SEVERE] Could not pass event BlockDispenseEvent to DispenserRefill v1.0.0
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.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at net.minecraft.server.v1_5_R1.DispenseBehaviorItem.a(DispenseBehaviorItem.java:57)
at net.minecraft.server.v1_5_R1.DispenseBehaviorItem.b(DispenseBehaviorItem.java:26)
at net.minecraft.server.v1_5_R1.DispenseBehaviorItem.a(DispenseBehaviorItem.java:13)
at net.minecraft.server.v1_5_R1.BlockDispenser.dispense(BlockDispenser.java:82)
at net.minecraft.server.v1_5_R1.BlockDispenser.a(BlockDispenser.java:110)
at net.minecraft.server.v1_5_R1.WorldServer.a(WorldServer.java:547)
at net.minecraft.server.v1_5_R1.WorldServer.doTick(WorldServer.java:189)
at net.minecraft.server.v1_5_R1.MinecraftServer.r(MinecraftServer.java:553)
at net.minecraft.server.v1_5_R1.DedicatedServer.r(DedicatedServer.java:229)
at net.minecraft.server.v1_5_R1.MinecraftServer.q(MinecraftServer.java:471)
at net.minecraft.server.v1_5_R1.MinecraftServer.run(MinecraftServer.java:403)
at net.minecraft.server.v1_5_R1.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/block/CraftDispenser
at de.akkarin.DispenserRefill.DispenserRefillWorldListener.onDispense(DispenserRefillWorldListener.java:64)
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)
... 16 more
@dot_start
I can confirm that this plugin is still working, though we had to redo /autorefill command.
@brinaq
I'm planning to update it as soon as CB hits a usable state (I'm not even sure whether the current CB build will really work with 1.5 clients without problems).
So do you plan on updating it soon? I just really need this for my server so I can update to 1.5
@Zen3515
The plugin is not optimized for 1.5 as it is still not ready for productive use. You should stay on 1.4.7 as long as there isn't at least a Beta-Build ...
@dot_start
Hey I got a problem in my sever 1.5 I have only one commad /autorefill Why I don't have /infinitedispenser /dispenserrefill
and this not work my machine gun dispenser still out of ammo
??
Just a note: A new version (1.1.0-A2) has been released and will be ready for download on Bukkit-Dev soon (as soon as it get's approved).
Note: You need at least version 1.1.0-A1 (previously named 1.1.0-SNAPSHOT) if your server runs on version 1.4 or above! Additionally 1.5 is untested as there seems to be no stable release available at this time.
@Sfmplayer
Well, it could be caused by some other plugin but I think orebfuscator will not cause such issues as it modifies outgoing packages (if I remember right).
@tschagg
I'll update the plugin if I have the time to do it. Not if you're spamming in the comments section. In the meantime there's version 1.1 which should work on 1.4.7 (I haven't testet it with 1.5 as there's still no stable release which should be used).