[INACTIVE][GEN] OChestDump v1.10 - Quickly stash, loot, or sort inventory [677]

Discussion in 'Inactive/Unsupported Plugins' started by Nayruden, Jan 25, 2011.

  1. Offline

    Nayruden

    OChestDump - Quickly stash or loot inventory:
    Version: v1.10
    Download: https://github.com/downloads/Nayruden/ocd/OChestDump.jar
    Source: https://github.com/Nayruden/ocd
    Bugs/Requests: https://github.com/Nayruden/ocd/issues

    OChestDump allows you to dump the contents of your inventory to a container, or to dump the contents of a container into your inventory, or to swap the contents of a container with your inventory, or to sort a container.

    To use, type "/ocd swap", "/ocd loot", "/ocd stash", or "/ocd sort" in chat while looking at a chest or dispenser. Typing "/ocd" in chat will bring up the help for the command.

    Loot fits as many items from the container into your inventory as possible.
    Stash fits as many items from your inventory into the container as possible.
    Swap simply swaps the items from the container and your inventory.
    You can add an item name or ID after swap or loot to exchange only the specified item.
    Sort allows you to sort items by name (default) or total amount of items.

    All commands combine stacks where possible to save space!

    You can enable a basic compatibility with chest protection by requiring users to open a container before they're allowed to use OCD on it. Enable this behavior in the configuration file.

    Changelog:
    v1.10 - 4/14/2011
    * [ADD] Multiworld support.
    * [ADD] Support for stashing/looting item durabilities (colored cloth).
    * [CHANGE] Updated item database.
    * [FIX] A protection issue with not recognizing a double chest as a single item.
    * [FIX] Various Bukkit breakages.

    v1.01 - 3/31/2011
    * [CHANGE] Various Bukkit breakages.

    v1.0 - 2/19/2011
    * [ADD] Support for Dispensers.
    * [CHANGE] Some tweaks that Bukkit devs have deemed necessary.
    * [CHANGE] Using Bukkit's ray tracer instead of OLib's now.
    * [REMOVE] Check for Bukkit chest bug, seems to have been fixed now.

    v0.9 - 2/07/2011
    * [ADD] Support for durability/colors throughout OCD, including sorting.
    * [ADD] Check for Bukkit bug, warns user when the chest is bugged.
    * [FIX] A bug with compacting air due to Bukkit changes.
    * [CHANGE] Converted command implementation to new Bukkit command model.

    v0.8 - 1/30/2011
    * [ADD] New sort: sort by item id.
    * [ADD] A basic compatibility with chest protection mods: you must open the chest to prove ownership (Enable this behavior in config).

    v0.7 - 1/29/2011
    * [ADD] Sort command.
    * [ADD] All commands will now combine stacks as much as possible.
    * [FIX] Putting items in the wrong starting row with large chests.

    v0.6 - 1/27/2011
    * [ADD] Ability to stash and loot only a specific item.

    v0.5 - 1/25/2011
    * Initial release.
     
    Gea and kovarex like this.
  2. Offline

    Galdrak


    Apparently I need to work on my reading retention skills, as I swear I read through the FAQ's. Thanks for pointing it out to me though.
     
  3. Offline

    gillbz

    There is a bug currently in this. If you do "/ocd sort" on a chest with a dyed wool in it or a dye (Lapis Lazuli etc.) it will just remove the dye of revert the dyed wool into normal wool.
    Would be great if this was fixed because this mod is really helpful :D.
     
  4. Offline

    Nayruden

    Oh! Didn't think about that. Thanks for reporting this.

    Sorry for the lack of updates the past few days, been swamped with school work. I should be able to get around to OCD again this weekend though.
     
  5. Offline

    niftyapple

    Also, could you add in a command for all within the reachable area such as /ocd sort all. this would be helpful to sort all totes for those of us that have craptons of chests but dont want to do them all individually :)
     
  6. Offline

    MatCat

    I do believe this is broken on current builds, just tried on my server and only /ocd works, everything else just does nothing.
     
  7. Offline

    Nayruden

    You're probably attempting to use it on a newly placed chest. See the first post.
     
  8. Offline

    MatCat

    I thought it was only bugged on double chests?
     
  9. Offline

    Nayruden

    Oops, sorry. Forgot to update the info. The bug does apply to any sized chest.
     
  10. Offline

    MrYaah

    omg you added sort! <3 ily ur the best :)
     
  11. Offline

    j2ther

    Server is spitting out this error everytime someone uses ocd
    craftbukkit 262
    HTML:
    SEVERE: Could not pass event PLAYER_COMMAND to OChestDump
    java.lang.ArrayIndexOutOfBoundsException: 27
            at org.bukkit.craftbukkit.inventory.CraftInventory.getContents(CraftInventory.java:38)
            at org.bukkit.craftbukkit.inventory.CraftInventory.getContents(CraftInventory.java:10)
            at net.omnivr.ocd.OCDPlayerListener.onPlayerCommand(OCDPlayerListener.java:63)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:143)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:601)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:574)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:283)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
     
  12. Offline

    Nayruden

    Version 0.9 released:

     
  13. Offline

    splashc

    Thank u for this really nice plugin.
    It works fine for me, but I have issues with stacked tools. If u swap/loot/... tools they will be stacked even if some are damaged and others not. After unstacking every tool has the same damage as the most damaged tool before swap/loot...-ing.
    Could u fix this by preventing tools from beeing stacked?
     
  14. Offline

    Nayruden

    Do you have this problem in v0.9? Logic was added to make sure different durabilities/colors always remain separate.
     
  15. Offline

    splashc

    Sorry, works fine in v0.9
     
  16. Offline

    PierreLouis

    You need to update the version in the OP!
    And thanks for this plugin [​IMG]
     
  17. Offline

    Nayruden

    Nice catch. Thanks. :)
     
  18. Offline

    TheDarkness73

    You need to make it so sand and clay works, sand doesnt work with ocd for some reason, it gets glitched and becomes the 255 sand like value
     
  19. Offline

    Nayruden

    Sand and clay are working fine for me. What do you mean by "255 sand like value"?

    Perhaps your issue is coming from a conflicting plugin? Try running latest Bukkit and latest OCD with nothing else and see if you still have problems.
     
  20. Offline

    TheDarkness73

    Maybe, When I ocd, i had a piece of clay and a block of sand, when placed the sand, i could place infinte amounts, with the clay, if i pressed q, i could drop invinite amounts
     
  21. Offline

    Nayruden

    New version up!

    The new version requires a recent Bukkit build!
     
  22. Offline

    niftyapple

    after updating to 416....

    2011-02-22 16:52:03 [WARNING] Using the stupidly long constructor net.omnivr.ocd
    .OChestDump(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader
    ) is no longer recommended. Go nag the plugin author of OChestDump to remove it!
    (Nothing is broken, we just like to keep code clean.)
    2011-02-22 16:52:03 [INFO] Hint! It's probably someone called 'Nayruden'
     
  23. Offline

    Nayruden

    Update to version 1.0.
     
  24. Offline

    SteveE104

    I really like this plug, but I would love it if it had one more thing...
    A toggle maybe, that would ignore your tool bar items when stashing or swapping. Something like
    "/ocd ignoreToolbar" would be awesome.
    --- merged: Feb 25, 2011 6:50 AM ---
    And one more thing...:D
    A "this" command... Used like "/ocd <stash/loot/swap> this" which would use the current item in hand as the name/id.
     
  25. Offline

    DJ_Idol

    If the cofiguration of requiring users to open chests before the command is available isn't enabled, can the users still use the command while in the chest?

    I'm wondering because I have lwc enabled, but some users don't need to lock their chests, so it would be easier for them to not have to open their unlocked chest in order to use these commands.

    Hope that made sense lol.
     
  26. Offline

    Nayruden

    Great ideas, I'll add them to my todo list.

    You're asking if OCD will know whether or not a chest is unlocked? It won't, it has no direct integration with any chest protection mod.
     
  27. Offline

    DJ_Idol

    Ok, thanks! :)
     
  28. Offline

    Xphacter

    OOPS this does NOT work with Backpack... lost all my items :(
     
  29. Offline

    Nayruden

    Since backpack manipulates the player's inventory pretty heavily, there's no simple way to support it.
     
  30. Offline

    silentdojo

    CB 531 OCD 1.0 GroupManager 1.0 A5
    Code:
    19:33:58 [INFO] ocd sort
    19:33:58 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ocd' in plugin OChestDump v1.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
            at java.util.TimSort.mergeLo(TimSort.java:747)
            at java.util.TimSort.mergeAt(TimSort.java:483)
            at java.util.TimSort.mergeForceCollapse(TimSort.java:426)
            at java.util.TimSort.sort(TimSort.java:223)
            at java.util.TimSort.sort(TimSort.java:173)
            at java.util.Arrays.sort(Arrays.java:659)
            at net.omnivr.ocd.OChestDump.onCommand(OChestDump.java:138)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
     
  31. Offline

    woodzy

    CB#544 WORKS PERFICT! no bugs found even withe colord wools or dies.
    i would recommend to all of u who use this plugin get LWC and set the config file to TRUE. so u dont have speed thefs
     

Share This Page