Inactive [FIX] ItemVoid v1.1 - Restores/Removes Items after Death [1000]

Discussion in 'Inactive/Unsupported Plugins' started by RoGER.ONeill, Jun 3, 2011.

  1. ItemVoid - Restores Inventory after Void Death:
    Version: v1.1

    This Plugin restores your Inventory automaticly after you die in the Void!

    Features:
    • Restores Items
    • Restores Armor
    • Automatic after death in the Void!
    • Customize when Users get their Items back
    • Customize if and when User should drop Items
    • No Bugs? Is that a Feature? :p
    Download ItemVoid

    Configuration (open)

    This configuration is the default and will generate itself, if none is present!
    Code:
    itemvoid:
      nodrops:
        - 'VOID'
      getback:
        - 'VOID'
      message: 'Inventory restored, because you died in %name%'
    Values you can use for "nodrops" or "getback":
    Code:
    BLOCK_EXPLOSION - Die from TNT
    CONTACT - Die by Cactus
    DROWNING - Die by drowning in Water
    ENTITY_ATTACK - Die from a Mob/Player
    ENTITY_EXPLOSION - Die from a Creeper
    FALL - Die by falling to your Death
    FIRE - Die in directly Fire
    FIRE_TICK - Die by burning to Death
    LAVA - Die in Lava
    LIGHTNING - Die by Lighting
    SUFFOCATION - Die by Suffocating in a Block
    VOID - Die in the Void


    ToDo:
    - Add a Configuration
    - Admins can specify, when Users get their Stuff back.
    - You can disable the User dropping Stuff, when they die.
    - Add custom Messages.

    Changelog:
    Version 1.1
    • Added a Configuration
    • Custom Messages
    • Customize if and when a Player gets the Inventory back
    • Customize if and when a Players inventory is lost/not dropped after death.


    Version 1.0
    • Initial Release
     
    KragTheDark and harakiwi like this.
  2. It seems the new Bukkit Version has broken it. I am fixing it tomorrow.

    To do that, you would have to specify all Events in "NoDrops" and leave "GetBack" empty. That would cause a Player to completely loose their inventory upon death.

    Nope, works for me. This is definitly a Configuration Error. Please post the config.yml.

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

    Klausar

    Could you add "KILLED_BY_PLAYER" ? Would be grate
     
  4. This basicly is ENTITY_ATTACK. I am not making that Events up myself. I am using what the Bukkit
    API has in store for the Developers. If you so deserve, I could check if the Entity is a Player, if you
    so desire.
     
  5. Offline

    Klausar

    Would be great
     
  6. Offline

    JanTTuX

    permissions support? it would be great that only EXAMPLE : Vips gets only items back :)
     
    Aselox likes this.
  7. Offline

    Dazzel

    So when i put all the values in the config the items will be resotred for ALL possible accidents? xD
     
  8. Yes
     
  9. Offline

    Dazzel

    Great thank you :)
     
  10. Offline

    Fujikatoma

    can you add Multiworld support (MultiInv plugin)?
     
  11. Looking into that next Week or so.
     
  12. Offline

    Kevin Robbens

    Great plugin. Void and fall seems to work for me.
    I've tested suffocation, died in a minecart under a block - did not get anything back, dropped my items.
    My config is nodrop & getback for FALL, VOID, SUFFOCATION. (isn't it SUFFOCATE ?)

    Hope you can fix this.
    Edit: I've tried it several times, seems to work now.
    Just great :)
     
  13. Offline

    algiuxas

    Neat! Thats what I was looking for! One suggestion tho. Maybe you can support TombStone? So when death event is listed in nodrops it also wouldn't create a tombstone :)
     
  14. Offline

    Zalastax

    I'm sorry to break your no bugs feature:
    Code:
    00:16:32 [SERIOUS] Could not load 'plugins\ItemVoid.jar' in folder 'plugins':
    
    while scanning a simple key
     in "<reader>", line 7, column 5:
            _ 'BLOCK_EXPLOSION'
            ^
    could not found expected ':'
     in "<reader>", line 9, column 5:
            _ 'CONTACT'
            ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(Scanne
    rImpl.java:400)
            at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.jav
    a:231)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    2)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(
    ParserImpl.java:510)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceFirstEntry.pro
    duce(ParserImpl.java:502)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.jav
    a:203)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:82)
            at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:156)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:174)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:194)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:117)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:114)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:266)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:253)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:317)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    My config.yml looks like this :
    Code:
    itemvoid:
    
      nodrops:
    
        - 'VOID'
    
        _ 'BLOCK_EXPLOSION'
    
        _ 'CONTACT'
    
        _ 'DROWNING'
    
        _ 'ENTITY_ATTACK'
    
        _ 'ENTITY_EXPLOSION'
    
        _ 'FALL'
    
        _ 'FIRE'
    
        _ 'FIRE_TICK'
    
        _ 'LAVA'
    
        _ 'LIGHTNING'
    
        _ 'SUFFOCATION'
      
      getback:
    
        - 'VOID'
    
        _ 'BLOCK_EXPLOSION'
    
        _ 'CONTACT'
    
        _ 'DROWNING'
    
        _ 'ENTITY_ATTACK'
    
        _ 'ENTITY_EXPLOSION'
    
        _ 'FALL'
    
        _ 'FIRE'
    
        _ 'FIRE_TICK'
    
        _ 'LAVA'
    
        _ 'LIGHTNING'
    
        _ 'SUFFOCATION'
      
      message: 'Inventory restored, because you died in %name%'
    
     
  15. Offline

    algiuxas

    Errors comes from YAML parser. You configured it wrong. It should be - 'property' not _ 'property'.

    No bugs feature still valid :)
     
  16. Offline

    Zalastax

    Thanks.
    I accidentally wrote first wrong and then I copied and pasted.
     
  17. Offline

    Cultist O

    Would it be possible to have it so that suffocating returns your items unless you do so in sand or gravel? this would be greatly helpful as warping into a solid wall, or having blocks reappear around your head after you thought you mined them is not uncommon (and it sucks when you lose all your stuff to a glitch), but sand and gravel can suffocate you legitimately. It would still not be perfect, because you could still warp into sand, but would still be a great improvement. and I do hope you are able to accommodate for the killed by player request as well. Thanks, I appreciate what you're doing!
     
  18. Offline

    Toxik

    I also have a request, since I have the bad habit to return to my spawn point by using /kill.
    I thought ItemVoid was actually working for this event, but I just found out that it isn't.
    All the other events work fine (and on CB 860), it just appears that a 'SUICIDE' event is missing.
    Would it be possible to implement this? Thanks for your great work!

    Edit: Still seems to be working for Minecraft 1.7.2 / CB 953!
     
  19. Offline

    dbizzzle

    This would be great if you made it work with all deaths and set it so users keep a percentage of their items on death, that would be amazing
     
  20. Offline

    c-eAgle

    Just to keep the those of you that would like to use this plugin up-to-date: this plugin still works absolutely fine, even with CB Build #1000.
     
  21. Offline

    shadydeath999

    @RoGER.ONeill i have the plugin installed but sometimes people thier items still drop even though i have every type of death as no drop and retrieve
     
  22. Well, my PC kinda broke. I cant really do much in the moment. I will have a look at it, asap.
     
  23. Offline

    KittyKatt

    I love this plugins, so does my players, but I cant use it anymore since this will happen everyday:
    Trying to restore a corrupt Inventory from a player will lead to this:
     
  24. What is a corrupt Inventory? I am pretty sure that I havent used that kind of an Output anywhere in my Plugin, so this seems to be a Problem with another Plugin. Maybe a conflict?
     
  25. Offline

    Rmoran

    What's the line to add if I want to keep my items after dying from a skeleton's arrow? Entity_attack is not it.
     
  26. Offline

    KittyKatt

    Aww, I mean that I had about 4000 visitors and about 100 players online constant on my server,
    so the inventory files sometimes get bugged, not your plugin fault, but when your plugin loads a corrupted/bugged player data file it crash the server.
    Maybe add a timeout if it coudnt restore the inventory after x seconds and just ignore restoring the items for that player, or maybe you could add a check if the file is corrupted first? Just a tip not a request!
    Except that, this is an awesome plugin and a must have on all big servers! Love it.
     
  27. Offline

    shadydeath999

    @RoGER.ONeill some people on my server just lose there total inv i have evey death type set so they dont drop them and keep them in inv but it happens rarely that they totaly lose thier inv
     
  28. Erm... Didn't work. Burned myself in lava, then lost inventory and dropped items. Here's my config:
    Code:
    itemvoid:
      nodrops:
        - 'VOID, LAVA, FIRE'
      getback:
        - 'VOID, LAVA, FIRE'
      message: 'Inventory restored because you died in %name%'
    
     
  29. Offline

    Doc

    Yes YES Y E S!!!
    Please!

    BTW, this is an awesome plugin!
    I love the fact that my users don't get killed anymore for item theft.
    (or at least did till I moved to multiverse /me chuckles)

    Thanks for this wonderful plugin!
     
  30. Offline

    Saber Mage

    Simple suggestions:
    - A getarmorback definition list, separate from getback, so that equipped armor can be defined to be expended in exchange for getting the rest of their inventory back.
    - Perhaps another list, e.g. armorneeded, that defines whether or not the user must have some kind of armor in that scenario in order to get their items back.
     
  31. Offline

    mgmmikkel

    Just made my Tibia Server a whole lot better..... :)
     

Share This Page