[INACTIVE][MECH] DeathChest v1.33b - Protect your drops! [80]

Discussion in 'Inactive/Unsupported Plugins' started by recanu, Feb 11, 2011.

  1. Offline

    recanu

    DeathChest v1.33b (Build 480)

    When you die and there is a chest in your inventory, it will be placed where you die or in a free spot (searching upwards). The chest will be filled with as many items as possible and any item that does not fit in the chest will be dropped. If you got two chests in your inventory and the items in your inventory do not fit in a single chest, a double chest containing all your items will be created.
    If you've got a sign in your inventory, a memorial sign will be created above your chest containing the Sign Template (see below). If you rightclick this sign as owner of the chest, all items (leaving those which do not fit in the chest) will be transferred to your inventory.

    Features:
    • Stores all your item drops in chests when dying if you have got a chest in your inventory
    • Creates a sign with configurable content! (/plugins/DeathChest/signTemplate.tmplt, see "Sign Templates" for further information)
    • Chest expiration! Chests are removed after a certain set of time which is also configurable in the config.yml!
    • When using the Permissions plugin, only users with the permission 'DeathChest.use' can drop DeathChest when dying. If not using it, everyone will drop chests.
    • Adds the Permission 'DeathChest.freeChest' to a group or player will remove the requirement to have a chest in their inventory. This way they will always drop a chest when dying. (They still need to have the 'DeathChest.use' Permission!)
    • Adds the Permission 'DeathChest.freeSign' to a group or player will remove the requirement to have a sign in their inventory to place a memorial sign above their chest.
    • LWC Support: protect chests & signs with LWC if this is enabled in the configuration
    • Local Permissions for non-Permissions users! Easy configuration of permissions with a permissions.yml file!
    • Sign quick loot: click the sign of your chest to loot your chest.

    Configuration
    Code:
    # This is the configuration file of DeathChest
    # Lines with # are comments and are ignored
    # placeSigns: true if signs shall be placed, false if not
    # protectChests: true if LWC shall be used to protect chests
    # protectSigns: true if LWC shall be used to protect signs
    # expiration: Time (in minutes) when chests shall disappear with all items. 0 = never.
    # dropItemsOnExpiration: true if items shall be dropped when deleting an expire chest.
    # removeUponQuickLoot: true if chest and signs shall be removed when quicklooting
    # removeChestIfAvailable: true if chests shall be removed from the inventory of a user with the
    #                         freeChest permission if they have got one in their inventory
    # removeSignIfAvailable: the same as removeChestIfAvailable for Signs
    # permissionSystem: Sets the permission system that should be used: LOCAL, PERMISSIONS, GROUPMANAGER or detect
    death:
        placeSigns: true
        protectChests: false
        protectSigns: false
    chests:
        expiration: 0
        dropItemsOnExpiration: true
        removeUponQuickLoot: false
    permissions:
        removeChestIfAvailable: false
        removeSignIfAvailable: false
        permissionSystem: detect
    This is the default configuration (located in /plugins/DeathChest/config.yml).

    The configuration is created when first time running the plugin.
    Editing the configuration is either done with an editor (like notepad) or with the in-game configuration editing. This requires Op rights when using a player or can be done through the console: just type in /dc config <node that you want to edit, ex: expiration> <a valid value: ex 0>
    Note that configuration files from older versions may be incompatible with newer versions and that you have to either delete and generate a new one or to edit the nodes.

    Sign Templates
    Code:
    Line 1: +name+
    Line 2: +date+ +time+
    Line 3: +cause+
    Line 4: R.I.P.
    Date Format: MM-dd
    Time Format: HH:mm:ss
    This is the default Sign Template (located in /plugins/DeathChest/signTemplate.tmptl).
    At the moment there are 4 variables: +name+, +date+, +time+ and +cause+.
    +cause+ contains these strings:
    TNT, Cactus, Drowning, Zombie, Skeleton, Creeper, Spider, Ghast, Giant, Pig Zombie, Slime, the player name of the player who killed you, Falling, Fire, Lava, Suffocation and Suicide (when doing /kill).
    Date Format and Time Format define how time (or date) are formatted. Ex: MM-dd will give "08-15" (15th of August). The text will be shown on the signs above the chests.

    Permissions:
    This plugin is compatible with Permissions 2.51 (All versions except 2.0 and below should work), GroupManager (0.99d+) and it's own local permissions system.
    These Permission Nodes are used with Permissions 2.51 and GroupManager:
    • 'DeathChest.use' - allows people to use DeathChest
    • 'DeathChest.freeChest' - deletes the requirement to have a chest (or two) in their inventory. (People with this Permission still need 'DeathChest.use' to use DeathChest.
    • 'DeathChest.freeSign' - same as freeChest for signs.
    • 'DeathChest.allowQuickLoot' - allows quicklooting when rightclicking the sign
    • 'DeathChest.protect' - Protects all chests and signs of this users (if enabled in the configuration and if LWC is installed) with LWC
    Note that when NOT having the Permission or GroupManager plugin, the local Permissions System (only avaible after v1.31b) will be used. It will be located in /plugins/DeathChest/permissions.yml. Read through the file and your questions will be answered.
    You can also switch the permission systems through the configuration node 'permissionSystem'. (See Configuration)

    Commands
    • /dchest info|version - shows info about your DeathChest version
    • /dchest config - shows the current configuration
    • /dchest config <node> <value> - edits the configuration and changes the value of <node> to <value>
    • /dchest reload - reloads configuration and sign template.
    All Commands require Op rights.

    Download DeathChest(v1.33b)

    Changelog:
    After releases with a configuration file changes, I suggest to delete (or rename) your old configuration and let the plugin generate a new one. This way it's more save for you to edit the file.


    Version 1.33b
    • Bugfixes
    • Code optimization
    • Permissions 2.51 and GroupManager are now both compatible.
    • You can choose your permission system in the configuration.
    • Fixed the permission node 'DeathChest.protect'; this is required for those users whos chests&signs should be protected
    *I maybe forgot some points here

    Version 1.32b
    • Updated to newer bukkit builds (tested with 438)
    • Changed commands: from /dc to /dchest.
    • Added new commands: /dchest info|version: Shows info about the DeathChest version, /dchest config: Shows the current configuration.
    Version 1.31b (300-347) (348+)
    • Fixed a second bug that caused errors when not using LWC
    • Added local permissions system located in /plugins/DeathChest/permissions.yml
    • Fixed for CraftBukkit build 348+
    Version 1.3b
    • Fixed a bug that caused errors when not using LWC
    • Added a new configuration node: chests.removeUponQuickLoot. See "Configuration" for further information
    • Added a command: /dc reload; This requires Op rights in-game. It reloads the configuration and sign template without clearing the DeathChest list (which happens when doing a server reload)
    • Added a new Sign Template variable: +cause+; See "Sign Templates" for further information.
    • Didn't add configurable sign position: postponed to v1.4.
    Version 1.21b (Note, this is a beta release and MAY contain bugs)
    • Fixed a bug that caused errors when placing single chests.
    • Added and modified configuration nodes. Notice that when updating from older versions that some nodes became inactive and were replaced by new ones. See "Configuraiton" for further information
    Added sign protection
    • Added Permission node 'DeathChest.allowQuickLoot'
    Version 1.2b (Note, this is a beta release and MAY contain bugs)
    • Added LWC support (new configuration node: useLWCProtection)
    • Added configurable Sign Template (/plugins/DeathChest/signTemplate.tmplt) See "Sign Templates" for more information.
    • Added quickloot sign: owners of DeathChest can click the sign above the chest to completely (or partially if the inventory can not hold all items) loot the chest
    • Added sign-consuming (now needs a sign in the inventory to place a sign above the chest)
    • Added new permission node: DeathChest.freeSign
    • Fixed Bugs: Chests now pick up armor and do not destroy blocks (if not necessary because of space problems) when being placed.
    Version 1.1
    • Added expiration timer.
    • Added configuration file.
    • Added Permissions suppport.
    • Added warnings when people destroy your DeathChest.
    • Added warnings before your DeathChest expires.
    Version 1.0
    • First public release.
    Bugs
    • The WorldGuard /slay command does not trigger a DeathChest - This seems to be caused by WorldGuard.
    If you experience bugs, please submit what doesn't happen right, the version of DeathChest you are using, which craftbukkit build #, the configuration file and the error stacktrace (if there is one).

    TODO
    • Add configuration for the Sign Position - in progress for v1.4
    TODO nodes marked as 'Done' are already coded and will be added in future releases.

    Info:
    The plugin was tested with craftbukkit build 300+. It may work with older versions, but this can lead to errors or other unwanted results. Also beta releases (marked with vx.xb) may contain bugs and lead to errors (or worse things).

    I'm open for suggestions!
     
  2. Offline

    Lunar Delta

    Doesn't work with GM + Fake Permissions.

    Code:
    00:41:25 [INFO] [DeathChest] version [1.33b] loaded.
    00:41:25 [INFO] Fake Permissions version 2.5 is enabled!
    00:41:25 [SEVERE] org.anjocaido.groupmanager.GroupManager.getPermissionHandler()
    Lcom/nijiko/permissions/PermissionHandler; loading DeathChest v1.33b (Is it up t
    o date?)
    java.lang.NoSuchMethodError: org.anjocaido.groupmanager.GroupManager.getPermissi
    onHandler()Lcom/nijiko/permissions/PermissionHandler;
            at com.recanu.DeathChest.PermissionManager.setup(PermissionManager.java:
    66)
            at com.recanu.DeathChest.DeathChest.onEnable(DeathChest.java:89)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Neither DeathChest nor Tombstone work anymore. What am I to do?
     
  3. Offline

    Jdbye

    I have LWC protection enabled, and everything works fine, but on every server stop I get this:
    Code:
    2011-03-04 10:11:32 [INFO] [DeathChest] version [1.33b] unloaded.
    2011-03-04 10:11:32 [SEVERE] java.lang.NullPointerException
    2011-03-04 10:11:32 [SEVERE]    at com.recanu.DeathChest.DeathChest.unprotectBlock(DeathChest.java:778)
    2011-03-04 10:11:32 [SEVERE]    at com.recanu.DeathChest.DeathChest.onDisable(DeathChest.java:124)
    2011-03-04 10:11:32 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:119)
    2011-03-04 10:11:32 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:433)
    2011-03-04 10:11:32 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
    2011-03-04 10:11:32 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:193)
    2011-03-04 10:11:32 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:72)
    2011-03-04 10:11:32 [SEVERE]    at net.minecraft.server.MinecraftServer.g(MinecraftServer.java:227)
    2011-03-04 10:11:32 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:302)
    2011-03-04 10:11:32 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)


    Use GroupManager 0.99d. Plugins that don't support Permissions 2.1 broke in GroupManager 1.0.
     
  4. Offline

    Lunar Delta

    Well, that's unfortunate. I have some plugins that require latest GM (like HeroChat, for example), so downgrading is not an option. I guess I will have to wait.
     
  5. Build 493 it crashes
     
  6. Offline

    Kostronor

    Is it possible, to let every Player having a chest, in which all Items are going.
    Like you have a graveyard where all the Items are landing in.
    Issue is, if you fall into Lava/unloadet chunks, there will be no chest.
     
  7. Offline

    saturnine_nl

    I really like your plugin, it's a must have for my server.
    In other plugins you have a /back function when you die.
    Wich kills all the fun of running against a timer to get your stuff.
    What I really would like to see is a compass heading to my deathchest.
    It won't kill the fun of chasing to the point where you died, but it gives
    a general direction to where you have to go.

    Keep up the good work... [​IMG]
     
  8. Offline

    Stephen92

    yeah i'm runnin 493 and it doesn't even work for me.
     
  9. Offline

    sharkh20

    As for me.
     
  10. Offline

    SneakyTax

    Running #493 and DeathChest v1.33b, works... but a LITTLE TOO WELL.

    Not sure what the trigger is (sorry cant test much as the login server is down). But basically - the chest is MULTIPLYING items. When I died, it created a double-chest, but when I opened the chest it gave me 2x the items back.
     
  11. Offline

    Jerubbaal

    I've been having a strange issue with this plugin. Whenever I die without a chest in my inventory, all of my items drop but they are invisible. It's not a gamebreaker, but it is a bit of a hassle to try and remember the exact patch of squares I died on and praying that I don't overlook one of the items I dropped. Any idea what is causing this, or how to fix it (other than absolutely always carrying a chest on me)? By the way, I have the following permissions set up:

    - 'DeathChest.use'
    - '-DeathChest.freeSign'
    - '-DeathChest.freeChest'
     
  12. Offline

    Tealk

    i have the bug that i become all items twice, if i quickloot it the chest become destroy and drop all again
     
  13. Offline

    HawnSolo

    Running CraftBukkit 493 + GroupManager 1.0 Alpha-2 (though I get a similar issue running with Permissions 2.5.3), and, well, here:

    Code:
    19:30:06 [SEVERE] org.anjocaido.groupmanager.GroupManager.getPermissionHandler()
    Lcom/nijiko/permissions/PermissionHandler; loading DeathChest v1.33b (Is it up t
    o date?)
    java.lang.NoSuchMethodError: org.anjocaido.groupmanager.GroupManager.getPermissi
    onHandler()Lcom/nijiko/permissions/PermissionHandler;
            at com.recanu.DeathChest.PermissionManager.setup(PermissionManager.java:
    66)
            at com.recanu.DeathChest.DeathChest.onEnable(DeathChest.java:89)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  14. Offline

    Nipper

    @recanu Deathchest seems to bugged out with b522. It puts the chest down but contents of the players inventory is just deleted and not put in to the chest.
     
  15. Offline

    Linaks

    Please update for newer bukkit build.
    Deathchest is working but doesn't place the items into the chest.
    THANKS
     
  16. Offline

    Jdbye

    Yeah, same here, plus not working with GroupManager 1.0 as mentioned above.
     
  17. Offline

    gazius

    Can you add the ability to prioritize what it picks up if it can't grab everything? Between my diamond pick and a big load of cobblestone, I'd like to ensure I don't lose my tools.
     
  18. Offline

    Liquidmantis

    Let me throw out a me too. I rolled back to 518 and it's working again. I'm ignorant on the mechanics, but I wonder if it has to do with this change on 521:
    Fixed an exploit allowing item duplication upon death (commit: 9acaa69dfd3e17937f595bb1d2d10390b53dd6f6) (detail / githubweb)

    I went down to 518 because it was the last build before that commit.
     
  19. Offline

    mxms

    I'm running 516 and am having the same issue where the chest and sign are placed, but no items are in them. I tried the '/dchest info' command, and it tells me I don't have sufficient permissions, even though I have added them into Permissions.
     
  20. Offline

    Phaedrus

    Bukkit 531 and users are also complaining items are being eaten. I just tell them to stop dying.
     
  21. Offline

    SneakyTax

    Would be nice to support color text on the signs (didn't see this noted, but I haven't tried any color codes as of yet)
     
  22. Offline

    fyrus12345

    permision.yml isnt there, even after permisions is set to local



    Edit: Thought I failed because i wrote local in lowe case, so i wrote LOCAL. And permision.yml still doesnt apear after i run the server
     
  23. Offline

    RenStrike

    Latest version not working for me. Grabbed the latest craftbukkit, latest deathchest, started server, killed myself, and didn't get a chest or sign dropped. I assume the default settings are deathchests for everyone as long as they have them in their inventory?

    No errors on the server at all.
     
  24. Offline

    Dreadreaver

    switched to TombStone 1.07 as that one is at least working :S
     
  25. Offline

    SweetCraft Girl

    LOL. "i".
     
  26. Offline

    Dreadreaver

    ???

    Girls nowadays LOL
     
    SweetCraft Girl likes this.
  27. Offline

    SweetCraft Girl

    I was just laughing at the "i" in his request.

    I translate that post as: "*I* would like to insure *I* don't lose *my* tools - so PLEASE WORK HARDER CODING THINGS SPECIAL FOR ME"

    because we all know that 'losing tools' is so important that recanu now needs to code in a 'priority pickup' sub-routine (if any such thing exists) so that tools get picked up first, just for that person. Seriously lame.

    What about people who hate losing all the diamond and gold and lapis etc, they mined, and stuff they crafted while at the mine? The tools are the last thing i care about when i have diamonds, gold blocks, lapis & red stone ore, all needing to get to Bank to be exchanged into gold coin or traded with someone.

    People make so many requests of plug-in developers - and i make requests as well. I just try to temper my requests so that they are not so egocentric and can actually be applied to helping others and not in some myopic way but broadly and help to the masses, not niche functionality that most wont even realize is there to even appreciate unless told.
     
  28. Offline

    Dreadreaver

    =) Thank you for making that clear. Just gotta love people explaining stuff like this in detail, makes the internet feel less "unhuman" if you get what I mean ;)
    Hope you didn't feel offended by my post in any way.
    Originaly I had this idea that thats maybe exactly what you were trying to say with your "LOL, i" but I trashed that idea as it seemed to far-fetched xD
    So my first guess was right :>

    And personally I think DeathChest should be fixed to work with newer CB-Builds first before even thinking about new features :O
     
  29. Offline

    Shenlong

    I've been having a problem where this plugin does not recognize that I have a chest in my inventory since I upgrade to CB Build 552(ish)(I know, not a Recommended build, but it fixes an issue I had with portcullises). Whenever I die it just says I don't have a chest in my inventory even though I do. I don't get any errors or anything. I'm gonna upgrade to the new recommended build tonight, so I'll report back if that changes anything.
     
  30. Offline

    Rilly

    Using 531 I'm having the same issue.. died and all my items disappeared. Chest and sign was created, but nothing was in it
     
  31. Offline

    Drakia

    Updating Bukkit isn't going to fix anything. He uses the same method I did to check for a chest, and to get your armor, and it's a method that was broken a while ago with a Bukkit update (The bukkit update was needed, it fixed item duplication).
    This plugin is going to need an overhaul before it's usable again.
     

Share This Page