[INACTIVE][MISC] AbsorbPlugin v2.1 - Chests, furnaces, dispensers and jukeboxes absorb items! [818]

Discussion in 'Inactive/Unsupported Plugins' started by robin0van0der0v, Mar 10, 2011.

  1. Offline

    robin0van0der0v

    AbsorbPlugin - Chests, furnaces, dispensers and jukeboxes absorb items!
    Version: v2.1

    Features:
    If you throw a item on a chest/furnace/dispenser/jukebox the item goes into them.
    Download AbsorbPlugin!
    Source is inside the jar file.

    Known bugs:
    Sometimes a duplication bug is triggered.
    If chest/dispenser is full then the item disappear.
    If a furnace is burning you can't throw items inside.

    Properties:
    This plugin creates a properties file on Plugins/AbsorbPlugin/config.yml. ;)

    Standard properties:
    Code:
    dispense:
        furnace: true
        dispenser: true
        chest: true
        jukebox: true
    absorb:
        furnace: true
        dispenser: true
        chest: true
        jukebox: true
    specialblock:
        furnace: ''
        dispenser: ''
        chest: ''
        jukebox: ''
    (Specialblock means that if the chest/furnace/dispenser/jukebox stands on that block they cannot absorb any items and cannot powered by redstone.)

    Changelog:
    Version 1.0
    • Release.
    Version 1.1
    • Fixed duplication bug.
    Version 1.2
    • Dispensers also absorb items, except the front of the dispenser.
    Version 1.3
    • Added furnaces.
    • Renamed plugin.
    Version 1.4
    • Changed namespace.
    • Added jukeboxes.
    • Added redstone.
    Version 1.5
    • Increased range.
    Version 1.6
    • Added properties file.
    Version 1.7
    • Fixed PLAYER_MOVE NullPointerException.
    Version 1.8
    • Fixed chests.
    Version 1.9
    • Removed check if the chest is full, it was to buggy.
    Version 2.0
    • Properties file is now saved in YAML format.
    • You can setup now multiple specialblocks separated by a comma.
    Version 2.1
    • Fixed a memory leak.
     
    kahlilnc likes this.
  2. Offline

    Sithnar

    just turn off the redstone empty bit. thats all i have done.
     
  3. Offline

    Butterquark

    So the code for checking if chests were full was removed in 1.8
    this function
    Code:
    public boolean is_full(ItemStack[] items)
        {
            for (ItemStack item : items)
            {
                if (item != null)
                {
                    if (item.getAmount() == 0)
                    {
                        return false;
                    }
                }
            }
            return true;
        }
    should be included in the PlayerListener.java
    and should be called like this
    Code:
    if (is_full(chest.getInventory().getContents()) == false)
    
    on several lines: 47,137,173,209,245,279
    or at least thats where they were in release 1.7

    I do not have the ability or the time to recompile this myself, but I do know how to read code.
    This function and its calls were mysteriously dropped between 1.7 and 1.8 hopefully this helps someone correct the problem so AbsorbPlugin can be safe to use again.
    There is another plugin that does things really similar but this one doesn't use any commands, and I like that. But i don't like throwing expensive items at double chests and having them disappear when its only half full. (each chests inventory is manages separately.

    Thanks,
    ButterQuark
     
  4. Offline

    o0AzzA0o

    My guess is he removed those checks to make the chests start absorbing again....... the plugin wasnt working at all in 1.7
     
  5. Offline

    Gary Ervin

    Does this work for the 733 build of Craftbukkit? I'll try it out anyways and see if it works.
     
  6. Offline

    robin0van0der0v

    I removed those checks, it was to buggy. :(
    Now it works in Beta 1.5. :)
     
  7. Offline

    plasmas222

    The duplication bug hasnt been fixed. Everything doubles every time I put I drop it by a double chest.
     
    Manuel1948 likes this.
  8. Offline

    Manuel1948

    yes please update something in the new version fixing this and also the ischest full thing...
     
  9. Offline

    iffa

    Finally. More than automatic cobblestone machines. Straight to chest now >:D
     
  10. Offline

    madejackson

    It Is Buggy -.-
    If you do a butten next to chest the items will multiply
     
  11. Offline

    MineralMC

    Dead download link of the current version.
     
  12. Offline

    rgboomer

    you did not fix duplication bug, double chests have 1 per chest when absorb, please fix.
     
  13. Offline

    BaiL

    Download link is dead. Can you upload it?
     
  14. Offline

    robin0van0der0v

  15. Offline

    Nick Hooper

    I'm getting

    Code:
    2011-05-18 00:05:04 [SEVERE] BLOCK_DISPENSE loading AbsorbPlugin v2.0 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_DISPENSE
        at nl.robinvandervliet.AbsorbPlugin.AbsorbPlugin.onEnable(AbsorbPlugin.java:42)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    the folder isnt created.
     
  16. Offline

    robin0van0der0v

    Please update to the lastest recommended build. ;)
     
  17. Offline

    thyme4soup

    add support for minecart chests! i want to make a system that brings all the items from a generator to my house when i click a button
     
  18. Offline

    robin0van0der0v

    I am already adding support for Minecarts with Chests and Furnaces. :)
     
  19. Offline

    thyme4soup

    thanks a ton you get 1[diamond]
     
  20. Offline

    vasil7112

    Why not adding radius and permisions support?:)
     
  21. Offline

    robin0van0der0v

    Permissions support for what? Placing Chests, Furnaces, Dispensers and Jukeboxes? Dropping items? :p
     
  22. Offline

    vasil7112

    no..for absorving items:p
     
  23. Offline

    Klausar

    Can you update it for 803?
     
  24. Offline

    Klausar

    Could you please update it for 818? It sometimes crashes my server
     
  25. Offline

    HadrienM

    Hello,

    Improvement idea :

    With a sign next to the chest/furnace/dispenser/jukebox, a custom line is added on the sign to specify what item must not be absorbed.

    Sign example :

    [AbsorbP]
    4 278 339
    line3
    line4

    So, the chest/furnace/dispenser/jukebox will not absorb cobblestone, diamond pickaxe, and paper which stand next to it (example on a pressure plate).

    Imagine a have a iron door that must be opened with a ticket (paper) that must be bought, i place a pressure plate, and the door opens only if a ticket is on the pressure plate (paper), all other items will be absorbed, but not the ticket (right item to open the door). Iron door and pressure plate are lined together with redstone too... (to precise).

    Sign of the example will be :

    [AbsorbP]
    339
    line3
    line4

    So, item 339 (paper/ticket) will not be absorbed to let the door open for 2 minutes (before it disappear)

    I'm French, sorry if that's not clear enough :)

    PS : not need signs absolutely, a simple line in config file may be ok, well i don't know...
     
  26. Offline

    Haloflooder

    Hi, This plugin is great but I have one complaint. I have lockette so everyone can lock their chests but this plugin makes an exploit for the lockette plugin. If you put any lever,button,redstone plugin next to a chest and activate it. everything will spill out the chest and people can steal from other people. Can you please make absorbplugin compatible with lockette? I would really appreciate it. My friend also have the same problem for his server. Thank you!
     
  27. Offline

    robin0van0der0v

    You can disable redstone in the configuration. ;)
     
  28. Offline

    Haloflooder

    Oh, I tried to look for redstone in the configuration but... I didn't find it and I don't know how to add redstone to the configuration. please help :)
     
  29. Offline

    noahwhygodwhy

    umm...update? 818? i followed a link to this so if it's inactive i'm sorry. but it's exactly what i need.
     
  30. Offline

    BoJaN

    Can somebody mirror the download please, the authors website is down
     

Share This Page