Inactive [MECH] DropChest v0.8.3 - Chests that absorb dropped items [1.1-R3]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, Feb 9, 2011.

  1. Offline

    narrowtux

    DropChest - Chests that absorb dropped items
    Version 0.8.2
    [​IMG]
    Important! When migrating from 0.6 to any above version, you have to move the DropChest.txt from server/plugins/DropChest.txt to server/plugins/DropChest/DropChest.txt
    This is because I have to follow the Bukkit plugin saves guidelines.

    This plugin automatically adds dropped items to near chests. That is very useful for automatic farming and monster traps that gather loot.
    Features
    • automatically suck dropped items that are near a chest to that chest
    • customizable warning if the chest is nearly full
    • list your DropChests and watch how much percent is still free
    • Permissions
    • Filter
    • Storage Minecart support
    • Dispenser and Furnace support
    • Item information
    • Chest protection
    • Automatic Owner tracking
    • Double-Chest support
    Download

    DropChest.jar
    GitHub Project (Source Download)
    Download development version

    Donate, if you want to support me ;)

    Video



    Usage
    Commands
    Show commands (open)

    To add a chest to the "watchlist", type
    Code:
    /dropchest add [radius]
    After that, rightclick the chest that you want to add. Radius is the radius in which the Chest should suck items. Default value is 2.

    To remove a chest from the "watchlist", just type
    Code:
    /dropchest remove chestid
    where chestid is the number of the chest that you get when you call /dropchest list

    You can list the chests that are on the watchlist via
    Code:
    /dropchest list
    You can adjust the radius of a chest via
    Code:
    /dropchest setradius chestid radius
    You can check which id and radius the Chest in front of you has:
    Code:
    /dropchest which
    after that, rightclick on the Chest to get information about it.
    If you are sitting in front of the console, or don't want to rightclick, you can use
    Code:
    /dropchest info chest
    It will generate the same output as /dc which.

    You can teleport to a chest via
    Code:
    /dropchest tp chestid
    where chestid is the ID of the dropchest

    You can set the name of a DropChest via
    Code:
    /dropchest setname {chestid} {newname}
    The name is displayed in chest is full warnings, and in the DropChest list!

    If you migrate from 0.6 to 0.7, you can set the owner of a dropchest by typing:
    Code:
    /dropchest setowner {chest} {newowner}
    You can protect a chest by typing
    Code:
    /dropchest protect {chest} {on|off}
    You can always use /dc instead of /dropchest if you are lazy.

    Another very helpful command is /dcitem:
    Code:
    /dcitem [NAME|id]
    
    This can be used to obtain the name of an item by it's id or get an id of the item-name.
    This doesn't work with all names, though.

    Use the new command /chestinfo {name|id} to get info about what's inside the chest.
    Omit the argument and rightclick on any chest to get info about that.
    Example:
    Code:
    >/dcitem 4
    4 is COBBLESTONE
    >/dcitem cobblestone
    COBBLESTONE is 4
    

    Show Configuration (open)

    You can configure DropChest by pasting the contents of the following block to plugins/DropChest/dropchest.cfg
    Code:
    #Should the dropchest drop items when it gets a redstone signal?
    droponredstone=true
    #How long should the dropchest not suck items after it has dropped them
    waitafterdrop=10
    #Should users be able to protect chests like in LWC?
    usercanprotectchest=true
    #Which is the default radius if you omit the radius argument in /dropchest add?
    defaultradius=2
    #Which should be the maximum radius for players that have not dropchest.setBig and aren't ops?
    fallbackradius=15
    #At which fill-status should the chest warn you?
    warnfillstatus=90
    #Which message should appear as warning?
    #You can use this variables (example):
    # $owner : the owner of the chest (narrowtux)
    # $name  : the name of the chest (my superduper mobtower chest/#42)
    # $fill  : The fill status, in percent (81)
    warnmessage=$owner, your chest $name is nearly full($fill%).
    

    Filter / Storage Minecarts
    Show Filter/Storage Minecarts (open)

    Filters have changed in version 0.6. There are now 3 seperate filters that are for sucking items, pulling items from passing minecarts and pushing them to passing minecarts.
    You can now set the filters by either using commands or using the interactive mode. Let me show you the interactive mode first:
    to begin, type
    Code:
    /dropchest filter {suck|push|pull}
    Note: choose one of suck, push or pull, please (for example /dropchest filter suck)
    Then you will enter the interactive mode. In this mode you can edit the selected filter by hitting the chest with the desired item in your hand.
    To edit another filter, type the above command again.
    To finish your filter, type
    Code:
    /dropchest filter finish
    Commands mode:
    Code:
    /dropchest filter {suck|push|pull} {chestid} {itemid|itemtype|clear}
    Call the filter-command like above, as second argument, use the chest-ID, and as third argument, either type the item-ID, the name of the item (as they appear here: org.bukkit.Material) or type clear to clear this filter.
    Please note! The suck filter acts different from the Pull/Push-Filter when it's empty. When the suck-filter is empty, the chest will suck every item. When a Pull/Push filter is empty, it won't take or give any items to a passing minecart.

    Show Permissions nodes (open)

    You can use these nodes:
    • dropchest - To get the right to use DropChest
    • dropchest.create - To call /dropchest add
    • dropchest.remove - To call /dropchest remove chestid
    • dropchest.radius.set - To set the radius of a Chest to something else than 2
    • dropchest.radius.setBig - To have unlimited radius
    • dropchest.which - To have access to the /dropchest which command
    • dropchest.teleport - To be able to teleport via /dropchest tp chestid
    • dropchest.filter - To set or reset filters
    • dropchest.filter.set - To set filters in interactive mode
    • dropchest.filter.reset - To reset filters in interactive mode (click with nothing in hand)
    • dropchest.list - To have access to /dc list and /dc info
    • dropchest.destroy - To be able to break a dropchest without removing it before.
    • dropchest.protect - To be able to protect a chest
    • dropchest.moderator - To be able to modify a dropchests properties even if you're not the owner. Also, ops and the console can do that.
    You can use these variables:

    • dropchestmaxradius - To adjust the maximum radius for a group or a user
    How to use variables:

    Code:
    users:
      narrowtux:
        info:
          dropchestmaxradius: 1000
    
    This is just an example and this also works with groups!

    Changelog
    Version 0.8.2
    • Fixed the loading issue.
    Version 0.8.1
    • Supports SuperPermissions (when no Permissions plugin was found)
    • Fixed show stopping bugs.
    • Use YAML as persistence storage. You can find the new file at plugins/DropChest/dropchests.yml
    Show Changelog (open)

    Version 0.8
    • Performance improvements
    • Fixed a bug that caused dropchest to eat stacks in storage minecarts (thanks @Tenebria )
    • Implemented per-chest delay (thanks @Gibbers )
    • Made /dc list per player. Use /dc list {pagenum} all to see all showcases (works without all in the console)
    Version 0.7.9
    • Fixed bug where items were lost when a chest/minecart was full on pushing/pulling
    • Little code cleanup
    Version 0.7.8
    • Fixed a bug where, for example, if you had several ItemStacks of 1 block each, only 1 ItemStack would be pulled to the chest or pushed to the MineCart, the others would be deleted.
    • Minecarts can now be over/under DropChests to be handled
    Thanks M-Type!
    Version 0.7.7
    • Double Chest support
    Version 0.7.6

    • Fixed some issues when using a Permissions implementation that is not complete (in this case EssentialsGroupManager as reported by @Kartus )
    Version 0.7.5

    • you can add all items to a filter by using the keyword "all" instead of the material-type
    • you can obtain info about a dropchest without having to rightclick (/dc info {chest}). However, the output is the same as when you would have called /dc which
    Version 0.7.4

    • warnfillstatus=-1 now disables the "chest is full"-warning
    Version 0.7.3

    • Fixed a bug that came with a new Bukkit release
    Version 0.7.2

    • /dc which now says something again, thanks to @Liger_XT5.
    Version 0.7.1

    • Removed debug messages :D
    Version 0.7

    • Configuration added
    • DropChests can drop their contents when a redstone input is present
    • Now, only the owner of a dropchest can adjust it's properties
    • The owner of a dropchest can protect the chest. So other players can't open it.
    • Customizable warning message and fill threshold.
    • Warnings will now be displayed to the owner of a chest, if he is online.
    • And made compatible to Minecraft 1.5_01. Older versions of craftbukkit won't work!
    Version 0.6.9

    • /dc which even more fancy
    • Removed debug message reported by @Reterg
    • Implemented the /item command which tells you what item this id is or vice-versa.
    Version 0.6.8

    • /dc which now looks fancy and shows the filtered items, too.
    Version 0.6.7

    • Added dropchest-id to the /dc which output.
    Version 0.6.6

    • Fixed NullPointerException on startup
    Version 0.6.5

    • Fixed /dc which
    • Refactored some code
    • You can now also use names of dropchests in the commands.
    Version 0.6.4

    • Fixed chunk unload that results in crash
    Version 0.6.3

    • Updated to bukkit-version 602
    • Tried to fix Thread-Exceptions. Breaking DropChests still not fixed, maybe happens later this day ;)
    Version 0.6.2

    • Permissions not required anymore.
    • Thread-Safe. No more ConcurrentModificationCheck Exceptions!
    Version 0.6.1

    • Fixed loading issues. You have to move your old DropChest.txt to the folder DropChest/ in your plugin directory!
    Version 0.6

    • Seperate filters for sucking, pushing to minecarts, pulling from minecarts
    • Multiple users can add dropchests at the same time now!
    • Added a name to the DropChests
    • Fixed Minecraft 1.3-Bug (method net.minecraft.server.Entity.q() was not available any more)
    I'm working on extended furnace handling, that fuels automatically go to the fuel slot and so on. This is still buggy so I didn't released it, it comes in the next version.


    Version 0.5.1
    • Multiworld works now
    • Paginated /dc list
    • Persistent DropChest IDs
    Version 0.5

    • Added support for Storage Minecarts
    • Added support for Dispensers and Furnaces
    Version 0.4.2

    • Fixed bug that Tearlow described.
    Version 0.4.1

    • Fixed loading bug when migration from versions 0.3 or below
    Version 0.4

    • Added filters.
    Version 0.3.1

    • Multiple world support
    • Since the Craftbukkit version from feb, 13 at 12:00 CET, Chests that are destroyed by Players are rebuilt
    • Worked around NullPointerException when Permissions is not loaded properly
    • Files now hosted on github ;) that non-members also can download DropChest
    Version 0.3

    • Permissions support.
    • Configure the maximum radius for each single user or group (via Permissions)
    • Fixes bug with unhandled Exception in the EntityWatcher-Timer.
    • /dropchest can be called via /dc for short
    • /dropchest without arguments just lists the commands that the user can execute, as well as his maximum radius.
    • Oh, and I corrected the Pythagoras formula for radius calculation. Shame on me...
    Version 0.2.3


    This is quite a huge bugfix update. Permissions come next ;)
    • Broken DropChests are now automatically removed from the list
    • changed package name from com.bukkit.narrowtux.DropChest to com.narrowtux.DropChest to prevent not loading issues coming up next monday
    • Added command "which", that allows you to see which id a chest has and if it is already a dropchest.
    • Linked against the most recent versions of Bukkit and Craftbukkit. The Bukkit guys have fixed a lot of bugs that affected this plugin. In my tests, there were no more nullPointerExceptions or similar errors. Also, DropChest now also works on very fresh placed Chests
    • And a currently constant maximum radius of 20 blocks
    Version 0.2.2

    • DropChest are now removed when you call /dropchest remove chestid
    • DropChest now have a minimum radius of 2
    • Fixed some saving issues
    Version 0.2.1

    • Fixed a problem where the radius has not been saved
    Version 0.2

    • Added a radius
    Version 0.1

    • First Release of DropChest
     
  2. Offline

    nicholasl

    I am not sure how to help you man I do not get any errors?

     
  3. Offline

    j.martin

    Try putting a push filter on the chest and then passing a cart next to it, thats what causes the errors.
    But cart push/pull is what most of our server is based on.

    Examples:
    Sorting chests push all the items into a cart that does a round around the village and all the appropriate chests pull only the items they're destined for. Farming chests are emptied by carts that return the crops to the village. Items can be shipped between villages by carts. And so on.....
     
  4. Offline

    nicholasl


    I have just tried that and get the same error :( that is pretty sad man.

    But maybe you could use part of falsebook to transfer items?
     
  5. Offline

    j.martin

    Thanks for the help though :(
    Nice to see somebody is watching this thread
     
  6. Offline

    NYRanger10

    wanna join my bukkit
     
  7. Offline

    fredghostkyle1

    can you set the radus to ALL world? i have not checked the config so..... i will mu ck with it tonight, thanks!

    will help.
     
  8. Offline

    j.martin

    There's no ALL world to my knowledge.... sounds like it might be a bit too much for the server to handle depending on your world. You could always /dc setradius #chestId 1000000000000000 and see if it explodes :p
     
  9. Offline

    fredghostkyle1

    lol, thanks for the info. and... NO i will not do that, i am NOT dedicated yet... thanks you!
     
  10. Offline

    rockhopper72

    Can you make it cost money to make a drop chest?
     
  11. With latest:

    09:45:25 [INFO] [DropChest] Enabling DropChest v0.8.3
    09:45:25 [SEVERE] Exception in thread "Thread-11"
    09:45:25 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.plugin.PluginDescriptionFile.getAuthors()Ljava/util/ArrayList;
    09:45:25 [SEVERE] at com.narrowtux.dropchest.Metrics.postPlugin(Metrics.java:217)
    09:45:25 [SEVERE] at com.narrowtux.dropchest.Metrics.access$100(Metrics.java:55)
    09:45:25 [SEVERE] at com.narrowtux.dropchest.Metrics$1.run(Metrics.java:191)
    09:45:25 [INFO] DropChest version 0.8.3 is enabled!
    09:45:25 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    09:45:25 [SEVERE] at java.lang.Thread.run(Thread.java:722)
     
  12. Offline

    buckshotjr

    This plugin does not work with 1.2.5, as another user stated (even proved with a youtube video) :(
    I wish I could at least run it like he did, but I can't... SUCKS! :(

    PLEASE GET THIS GOING !!! WE WILL DONATE!! This plugin is so worth it!!
     
  13. Offline

    tangy777

    download wont work.

    can you give me the download link in a reply? The one on the page wont work.

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

    weasel5i2

    Here's a copy I recompiled against 1.2.5-R1.0. It seems to work fine, entity events and everything. All I changed were the dependency-related compilation errors. Namespaces and everything else is unmodified.

    JAR: http://weasel.net/minecraft/DropChest.jar
    SRC: http://weasel.net/minecraft/DropChest-0.8.3.1-w5i2_src.zip

    I'm not the original author, so if any other wacky exceptions end up being thrown, I didn't see them. All I did was fix the code and recompile, and test it with creation/deletion/chest-suck of three chests on my server, and it didn't throw any exceptions, and did exactly what it says on the tin.

    Great work, all credit goes to the original plugin author! ^_^ If you're gonna donate to me for fixing it, I insist that you instead donate to narrowtux for creating it in the first place.

    --W5i2

    PS: I'll be back soon to update my old plugins and introduce a new awesome one at some point.
     
    Vastrix likes this.
  15. Offline

    Phonon

    This didn't work for me weasel5i2 : (. I am running bukkit v1.2.5-R1 and I get an error when I try /dropchest add that says something to the effect that an internal error has occurred. Thanks for trying though.
     
  16. Offline

    weasel5i2

    Weird.. I'm running 1.2.5-R4 but I compiled it against 1.2.5-R1.. Might have something to do with it. Can you see the corresponding stacktrace in the server.log when the internal error occurs? Also, it might be worth mentioning that I used the command /dc when I tested it. :)

    EDIT: I just determined that it is probably the permissions dependency on Vault. I compiled it against v1.2.13-b148, which can be found here. Hopefully that'll fix the problem!
     
  17. Offline

    j.martin

    I FUCKING LOVE YOU!
    Works on my 1.2.3 server
    screw narrowtux he hasnt responded in months!
    PM me your paypal account ;)
     
  18. Offline

    jeras

    download link doesnt work?
     
  19. Offline

    j.martin

    I was mistaken, its still not working for me :( , the chests are pushing their items but arent pulling them -_-
    Took me a while to notice that the items werent being placed anywhere

    Code:
    2012-05-25 17:08:42 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.3-R0.2-65-gac5de14-b2098jnks (MC: 1.2.3) (Implementing API version 1.2.3-R0.3-SNAPSHOT)
    2012-05-25 17:08:52 [INFO] DropChest version 0.8.3.1-w5i2 is enabled!
    2012-05-25 17:08:52 [INFO] File /home/mc15624/bin/plugins/DropChest/dropchest.cfg not found.

    and then I receive this error over and over:


    Code:
    2012-05-25 17:09:01 [SEVERE] Could not pass event VehicleMoveEvent to DropChest
    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:459)
    at net.minecraft.server.EntityMinecart.G_(EntityMinecart.java:611)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1265)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:106)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1247)
    at net.minecraft.server.World.tickEntities(World.java:1154)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:545)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NullPointerException
    at com.narrowtux.dropchest.DropChestItem.minecartAction(DropChestItem.java:555)
    at com.narrowtux.dropchest.DropChestVehicleListener.onVehicleMove(DropChestVehicleListener.java:47)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 10 more
    
     
  20. Offline

    weasel5i2

    Download link is fixed now..

    I'll take a look at it. Didn't test any minecart stuff when I recompiled it. :)
     
  21. Offline

    Libella

    Hey There..

    it would be sooooo great when somebody could upload the .jar file again :)
    Or if u show me another plugin like this ^^"

    edit: omg I didnt read the last posts.. THANK UUU <3
     
  22. Offline

    cobash

    Anyone have any luck fixing the minecart push/pull error?
     
  23. Offline

    scotty86

  24. Offline

    greenhillMC

    my internet is sort of mest up and if i click the download link it gives a wrong site or a error message
    can you please put in another download link for another site so i can download your plugin

    BECAUSE ITS AWESOME AND I WANT TO HAVE IT!!!
     
  25. Offline

    dark_hunter

    This web page is not available.

    The server at tetragaming.com can't be found because the DNS look-up failed. DNS is the network service that translates a website's name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing Chromium from accessing the network.
     
  26. Offline

    Vastrix

    1 of the 2 chests i have works but the other 1 doesn't do anything :'(
    anyone else has this problem?
     
  27. Offline

    Vastrix

    kinda sad that LWC does a better job at pulling items in a chest then this plugin (of which it is the only purpose)
     
  28. Offline

    timzy

    You should definitely make a new plugin post on either dev or here.
    Great work on maintaining the plugin, works great on 1.3.1!
     
  29. Offline

    KermMartian

    Thanks very much for maintaining it! I only wish I could have downloaded the plugin without having to register for Ultimine. :)
     
  30. Offline

    spelmyst

    I was wondering if someone was working on this, or if I would have to rebuild his work from some old code.
     
  31. Offline

    steveg

    I am also wondering if anyone is supporting this plugin? Just in case no, I have downloaded the source, JDK and netbeans, and will try to work in it. I love this plugin, but the current version has bugs for me...

    1) when our server reloads or restarts, the file that contains the data for all the drop chests gets cleared, and all my drop chests are lost. I hate having to redefine them all again.

    2) we currently removed the plugin because of issue 1, and also not sure if it is causing our server to reload

    I would be more than willing to donate, if this was supported and we got a working version :)
     

Share This Page