EnderHoppers For GriefPrevention

Version 1.2
This Plugin works with GriefPrevention and allows Hopper functionality to work with EnderChests by dealing with the EnderChest inventory of the claim owner.

Configuration can be done by editing the file /EnderHoppers/config.yml in your plugin directory, and currently allows for the adjustment of how often items are taken from or given to appropriate EnderChest Inventories. The default is currently once every three seconds (60, as the configuration is in game ticks) which makes them slower than when Hoppers are used with a chest as well as reducing performance implications. Configuration also presents the ability to define a whitelist through an EnderHoppers.WhiteList configuration option within the aforementioned configuration. If this whitelist has entries, this Plugin will only transfer items to and from EnderChests for Players who's name are in the whitelist.

Better Ender Chest
Version 1.2 has added support for the Inventories managed by Better Ender Chest. Since I don't know a lot about Better Ender Chest's various expanded capabilities, I may have missed some functional requirements. It has however worked in my testing. This should not affect the functionality of GP Ender Hoppers without Better Ender Chest installed, in which case it will of course default to the standard Player Ender Chest.

Usage

When installed, this will allow Hoppers to Work With EnderChests within a Claim. That is:

  • When a Hopper is underneath an Ender Chest, it will extract contents from the EnderChest Inventory of the Claim owner, as long as they are Online.
  • When a Hopper is attached to an Ender Chest, it will pipe it's contents into the EnderChest Inventory of the Claim owner, as long as they are Online.

Items are removed and added at the Interval specified in the configuration file, which defaults to 60 (or three seconds). Each time One item is taken from the Hopper and placed into the Ender Chest or vice versa. Nothing happens if the Destination is already full, the source is empty, or if the Player that owns the Claim is not online. thus making this function almost identically to the Vanilla Hoppers and Chests, aside from the Online requirement for the Claim owner.

Another side effect is that if you create very complex structures, sometimes items can end up in unexpected locations. This is particularly the case if you have more than one Ender Chest Inventory being "sucked" from. In this case the actual order is more or less undefined. However, what this will usually mean is that the first Hopper that was loaded will take precedence. Since you cannot predict the order they will be loaded, however, it is best not to try to rely on this behaviour.

Another caveat to consider is that this means that anybody with build permissions in a claim can essentially take or put items into the claim owners EnderChest Inventory. There isn't much of a way around this, since the functionality is essentially just added to Hoppers themselves and associates with the EnderChest inventory of whoever owns the Claim.

This plugin also works with the latest dev builds of GriefPrevention.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of joshthegrate joshthegrate Apr 17, 2014 at 21:04 UTC - 0 likes

    So sad still no update...

  • Avatar of joshthegrate joshthegrate Jan 15, 2014 at 20:37 UTC - 1 like

    please update to 1.7.2

  • Avatar of Mercury92 Mercury92 Sep 21, 2013 at 09:16 UTC - 0 likes

    Attention!

    GP EnderHoppers 1.3 for GP 7.7/7.8 and Bukkit 1.6.2 file is named as GriefPrevention.jar.

    + error log http://pastebin.com/yiMhGpQ6

    Last edited Sep 21, 2013 by Mercury92
  • Avatar of woodzykiler woodzykiler Aug 30, 2013 at 15:34 UTC - 0 likes

    can u add a way to allow use of this outside of a claim?

  • Avatar of rutgerkok rutgerkok May 28, 2013 at 16:59 UTC - 0 likes

    @BC_Programming: Go

    Nice work! I have added a notice on the BetterEnderChest page that your plugin is compatible.

  • Avatar of slimedog007 slimedog007 May 25, 2013 at 20:15 UTC - 0 likes

    @BC_Programming: Go

    You da man! Nice work. I'm excited to download the update :)

    Follow us on Twitter! @keepablock
    Keep a Block - Minecraft Server dedicated to the Keep a Breast foundation to support breast cancer!
    http://topg.org/banners/b357447.gif

  • Avatar of BC_Programming BC_Programming May 25, 2013 at 20:03 UTC - 1 like

    Version 1.2 adds support for Better Ender Chest inventories, and should be approved shortly. :)

  • Avatar of BC_Programming BC_Programming May 25, 2013 at 08:35 UTC - 0 likes

    @slimedog007: Go

    Oh there is a way, I'm sure. I guess your question is would I add it. I admit I've been focussing a lot of my efforts at the moment on Grief Prevention itself. Thank you for the link, however, it looks like supporting BEC if it is installed would be quite simple (And would have the additional ability to access the Ender chest contents of players that are not online). I'll almost certainly add that.

  • Avatar of BC_Programming BC_Programming May 25, 2013 at 08:30 UTC - 0 likes

    @JustinFatalx: Go

    Thanks. Seems my build script was broken. I've hopefully fixed that and uploaded the fixed version, which should be uploaded shortly.

    This fix can be applied with existing versions by opening the .jar with a Zip program and renaming the incorrectly named plugin.yml (Which was called GPEnderHoppers.yml for some reason) to plugin.yml, if necessary.

  • Avatar of slimedog007 slimedog007 May 24, 2013 at 02:51 UTC - 0 likes

    Would there be any way to get compatibility with BetterEnderChest? This would be great for my server, as I love BEC and I love this plugin.

    I commented the author on BEC, and he pointed me to these instructions.

    Last edited May 24, 2013 by slimedog007

Facts

Date created
May 10, 2013
Categories
Last update
Nov 03, 2013
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
EnderHoppers For GriefPrevention
Downloads
1,405
Recent files

Authors