Inactive [GEN] DispenserReFill v2.0.1 -- Fill and Refill your Chests and Dispensers [1.2.3-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by Nitnelave, Jun 5, 2011.

  1. Offline

    Nitnelave

    DispenserReFill
    Download latest
    Source
    Old Versions
    Works on 1.2.3-R0.1

    Are you too lazy to fill your dispensers over and over? Well now, you can do it easily with one simple command! Now works with chests! It takes the items from an adjacent chest or from your inventory to fill the dispenser/chest. Checks if you can access the dispenser/chest with LWC.
    Code:
    /dfill <item id or name>    : Fills the dispenser you're facing(you can use it to clear it's inventory)
    /drefill      : Fills the Dispenser you're facing with the first item found in the dispenser.
    /dautofill <item id or name> : refill a dispenser from the chests around with the item specified(op only : refill a chest or dispenser by spawning items)
    /dautorefill : refill a dispenser from the chests around with the first item in it's inventory (op : spawn the items to refill). If it gets emptied, it remembers the last item.
    To remove an auto-filling chest/dispenser from the list, break it, and wait a little (until a refill has been processed).
    There is a config for permissions : OP, false, or permissions
    Permission nodes :
    Code:
    - 'DispenserReFill.fill'
    - 'DispenserReFill.bypassinventory'    #allows you to create the items rather than take them
    from your inventory. Should only be given to admins.
    - 'DispenserReFill.auto'
    
    Features :
    • Quickly fill or refill a chest/dispenser from the adjacent chests and your inventory
    • Create auto-refilling chests/dispenser
    • Keep chests/dispensers empty
    • Supports Permissions
    • Supports OddItem
    • Supports LWC

    TODO:
    • Per slot refill
    Changelog:

    • v2.0.1 -- Fixed config not getting generated
    • v2.0 -- Updated for 1.2.3-R0.1
    • v1.0.4 -- bugfix for dautofill 0.
    • v1.0.3 -- bugfix for some nullpointer issue.
    • v1.0.2 -- support for BukkitPermissions
    • v1.0.1 -- Rewrote some code to improve speed.
    • v1.0 -- Fixed looking at redstone wire bug, added OddItem support, added LWC protection
    • v0.5 -- Double chest fix (Duh! for me), auto refill command
    • v0.4b -- Fills the dispenser with items in the adjacent chests, if possible, then completes with the player's inventory. Doesn't work with adjacent double chests.
    • v0.3 -- Fills from the player inventory
    • v0.2 -- Added support for chests
    • v0.1 -- Initial release
     
    thefowles1 likes this.
  2. Offline

    Kalexer

    It works, but it doesn't seem to 'take' the items from the chest, it just looks whats in there and duplicates it..
     
  3. Offline

    Nitnelave

    If you're an admin or an OP, you have permission to generate items, so it will create items without taking them from the chest, as for anything created by someone with the DispenserReFill.bypassinventory permission. But for a normal user it will take the items from the chest.
     
  4. Offline

    Robert Pendell

    Whenever I try to do this it actually causes an exception. If I add it using /dfill first then do /dautorefill it does this in the console on refresh.

    Code:
    02:24:30 [SEVERE] java.lang.NullPointerException
    02:24:30 [SEVERE]       at com.nitnelave.DispenserReFill.DispenserReFill.refill(DispenserReFill.java:425)
    02:24:30 [SEVERE]       at com.nitnelave.DispenserReFill.DispenserReFill.refill_auto(DispenserReFill.java:775)
    02:24:30 [SEVERE]       at com.nitnelave.DispenserReFill.DispenserReFill$1.run(DispenserReFill.java:135)
    02:24:30 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    02:24:30 [SEVERE]       at java.lang.Thread.run(Thread.java:722)
    
    If I skip that and just do /dautorefill I get this instead
    Code:
    02:20:42 [WARNING] [DispenserReFill] Could not scan refill file: java.lang.NullPointerException
    
    Any ideas? It can modify the file as it was successful with /dfill. It just doesn't work with /dautorefill at all for some reason.

    Forgot to mention I was on bukkit 1060.
     
  5. Offline

    Nitnelave

    Ok, I released a bugfix release. try version 1.0.3, and it should fix the first bug, and hopefully fix the second, if you start by deleting the entry in the refill file that was causing the problem. If you get the coordinates in the real game, you can figure out which entry it is. And if it happens again, you should get more info.
     
  6. Offline

    Robert Pendell

    Alright I had already switched plugins to another one (a bit rough around the edges) but I'll take a look when I get a minute.

    EDIT: Tested it and it seems to be working now so I'll likely go and replace all the chests with this plugin. Much cleaner. :)
     
  7. Offline

    Nitnelave

    Glad to help. Simple programming mistake that was easily fixed. But I mustn't have tested with just a dispenser/chest with no other chest around, cause that's what was causing the problem, I believe.
     
  8. Offline

    BlackSoldierB

    You made a awesom plugin.
    A nice extra option would be to turn off the refresh message. It spams a lot now in the console :p
     
  9. Offline

    Nitnelave

    In the config.yml, you can set the log-refresh to false.
     
  10. Offline

    BlackSoldierB

    Ahhh nice didnt know it was already in there :p Good Job then :D
     
  11. Offline

    vanja

    Good plugin!

    but /dautofill 0
    doesn't seem to work in 1185

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  12. Offline

    Nitnelave

    Are you running the command as an admin? I don't remember if it's supposed to empty the chest... Try with something else, just to check.
     
  13. Offline

    vanja

    when i try for example 5-wood it works, but i need to keep them empty :/
     
  14. Offline

    Nitnelave

    ok, new version just for you! When you do dautofill 0 : if you can spawn items, it just plains empty the chest. If you're a regular user, it empties the content of the chest on the ground.
     
  15. Offline

    vanja

    awwww *_*

    You're the best!! i'm using this plugin for a long time and i'm very happy with it :), also emptying chests works :) thanks!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  16. Offline

    Nitnelave

    You're welcome! Did you try CreeperHeal too?
     
  17. Offline

    Migrosbudget

    Does this work with #1337?
     
  18. Offline

    Nitnelave

    As I don't have any bug report from other users, I guess so. I did a quick test and found no crash issues.
    Make sure to post here if you find it working or not!
     
  19. Offline

    juicycool

    does it work with #1597?
     
  20. Offline

    Nitnelave

    Probably. Why don't you try and report? If there's a problem, I'll try to fix it, and if not, others will be happy to hear that!
     
  21. Offline

    juicycool

    ok, it's work successfuly!
     
  22. Offline

    Technius

    Really useful for arrow machine guns that fire 2000~ arrows per minute.
     
  23. Offline

    thefowles1

    This plugin is fabulous for my lazy administering style. I have one request, though. Would it be possible to have the ability to have the chests refill automatically with more than one item? I want to have a bunch of each piece of a full set of armor constantly refilling a chest, but it only refills with one piece so I have to do four individual chests.
     
  24. Offline

    Nitnelave

    I've kinda stopped developing this plugin... You might want to look at infinite chest, or something like that.
     
  25. Offline

    thefowles1

    Sad day. :(
     
  26. Offline

    Nitnelave

    Good news! I updated the plugin, and it now works with 1.2.3-R0.1!
     
  27. Offline

    tschagg

    thank you so much for updating!
     
  28. Offline

    un4seendeathz

    probally just me but my configs are empty and I remember the config had the option to turn off the console spamming from it. Do you think its because I have not use the commands yet?
     
  29. Offline

    Nitnelave

    delete the config file, a new one should be created.
     
  30. Offline

    un4seendeathz

    still cant see anything
     
  31. Offline

    Nitnelave

    Hmm... You're right. The new config isn't generated. I'll check that this week-end. Until then, you can try "log-refresh: false" in your config.yml.
     

Share This Page