Inactive [MECH/GEN] GraveRobber v2.0.0 - Persist Inventory, XP & Level After Death [1.3.1-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by cdncampbell, Jun 1, 2012.

  1. Offline

    cdncampbell

    GraveRobber - Persist player inventory, XP and Level after death.

    Recent News:
    • 2012-08-14: GraveRobberPlugin v2.0.0 Released.
    • 2012-08-14: dev.bukkit.org approved the GraveRobberPlugin Project.
    • 2012-08-10: I created a project on dev.bukkit.org to comply with the future state of all plugins. I will update the links on both github, Bukkitdev and the current thread to point to the latest release of GraveRobber. If you would like to visit the Bukkitdev site please go to http://dev.bukkit.org/server-mods/graverobber/
    Current Version: v2.0.0
    An event listener that will persist a player's inventory and XP/Level (death penalty applied). Equiped items and inventory are restored to their respective slots upon player respawn. There is no requirement for commands or premissions; simply copy the plugin jar file into your plugins folder and start the server!

    2.0.0 Features :
    • Existing features of 1.8.1
    • GraveRobber now accepts commands:
      • gr.signpost:
        • enable or disable sign posts on player death.
      • gr.pvp:
        • Enable and Disable toggle.
        • Items drop upon environment/creature death.
        • Items are persisted after PVP death.
      • gr.i2k:
        • aka: "items to keep"
        • Users can add or remove items which are to be persisted after player death.
        • Other items will either be dropped or erased (depending on configuration).
    • Commands are only available to Op'ed Players.
    2.0.0 Known Issues
    • CraftBukkit 1.3.1-R1.0: None reported
    • Minecraft Client:
      • Client experience bar and level indicator not updating with correct exp/level until more exp is collected or player logs off and logs in.
    1.8.1 Features:
    • When a player dies and re-spawns, they will maintain their current Level
      and XP.
    • When a player dies and re-spawns, all items that were in the inventory
      at the time of death will be restored.
    • When a player dies and re-spawns, all equipped items that were in use at
      the time of death will be restored and equipped. - No requirement for
      special permissions.
    • When a player dies, a percentage of XP is removed as a death penalty and
      the level adjusted accordingly. This scales as the level of the user
      approaches 50.
    • A sign-post is left on the block that the user died upon showing the
      date/time and death message.
    • Player drops are removed from the world after being assigned for restoration (avoids possible dupe issue).
    1.8.1 Known Issues
    • CraftBukkit 1.3.1-R1.0: None Reported
    • Minecraft Client: None Reported
    Reporting an Isse
    Download GraveRobber
    dev.bukkit.org:
    http://dev.bukkit.org/server-mods/graverobber/

    github.com:
    https://github.com/cdncampbell/CB-GraveRobber/downloads

    Grab the source code from github.com:
    https://github.com/cdncampbell/CB-GraveRobber

    Changelog:

    Version 2.0.0
    • Added Commands (gr.signpost, gr.pvp, gr.i2k)
    • Added SignPost Toggle.
    • Added PVP Mode & Toggle.
    • Added Items2Keep (method to allow only certain items to be persisted).
    • Updated death penalty calculations to account for exp mechanics change in CraftBukkit 1.3.1 update.
    • Changed permissions on plugin; enabling and disabling as well as configurations are only accessible to Op'ed players
    Version 1.8.1
    • Updated SIGN_POST text to become more readable.
    • Updated outdated version information.
    Version 1.8
    • Initial public release of GraveRobber Plugin. Be gentle with the comments :)
     
  2. Offline

    cdncampbell

    Updated thread to reflect new 1.2.5-4.0 code.
     
  3. Nice plugin ! :)

    But when you die, if an other player (let's call him Bob ! ;p) get your items and then you re-spawn, will your items be back into your own inventory and disapear from Bob's inventory ?

    Edit : Oh and can you avoid the sign-post to appear ?
     
  4. Offline

    cdncampbell

    Thanks for using the plugin,

    I attempted to clear the item drops from the dead player before "Bob" picks up the loot. So, if you could let me know if this works or not I'd greatly appreciate it :)

    As for the sign-post toggle.. I will definitely add that as a feature to the next version!
     
  5. Offline

    md_5

    yay for cheating death, approved.
     
  6. Offline

    Hybris132

    Great plugin, thanks a lot for it. The only thing I'd love to see in newer versions is the possibility to disable the sign placement upon death.
     
    cdncampbell likes this.
  7. Offline

    Jeroeny

    Great, only 2 things: is there/will there be an option to keep all of your XP/Lvl ? And will enchanted tools keep the same enchantment?
     
  8. Offline

    cdncampbell

    Yes, you do keep your XP/Level. However, I did incorporate a death penalty to remove a percentage of your XP if you do indeed die.

    Yes again. The items will maintain their enchantments.

    Hi there, I am currently working on the 2.0 version of the plugin and with the upcoming release you will have the option to enable/disable signs :)

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

    Senophoe

    Is it possible to add something like white-listed items? This way you could choose what items to keep after death.
     
  10. Offline

    G.D.JACKS

    Would like to see a toggle for PVP or PVE death. As an example: "Bob" kills you so this mod kicks in and restores everything back to you at spawn, you wonder off then proceed to get blown to bits by a creeper hit man squad. Now all your exp, loot, etc are left where you last died like vanilla.

    Basically looking to pick which event if not both to restore stuff.

    *edit* Just thought of something on top of this if a player dies from pve damage like fire, fall, lava, mob, etc damage with in a short time after receiving pvp damage counts as a pvp death.
     
  11. Offline

    cdncampbell

    It sure is, I am going to take this idea and add it to my "todo" list for the next release.

    That's a good suggestion! I will be sure to add that in the next release :)

    If I make a PVP Plugin, I will be sure to include any and all splash/collateral damage as a win ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  12. Ooo this would be a great perk for my Buycraft store. Cheers!
     
    cdncampbell likes this.
  13. Offline

    GlacialFlames

    I'd really love to try this plugin but everytime I try to load it i get this...

    [SEVERE] Could not load 'plugins\GraveRobberPlugin-v1.8.1.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/github/cdncampbell/GraveRobberPlugin : Unsupported major.minor version 51.0
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198)
    at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
    at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
    at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.UnsupportedClassVersionError: com/github/cdncampbell/GraveRobberPlugin : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
    ... 9 more





    Do you know how i can fix this?
     
  14. Offline

    cdncampbell

  15. Offline

    wakinglife142

    I love this mod, I was looking for something like this on my new server.

    Unfortunately, the XP does not seem to be deleting from the world, or being recovered.

    If you go to the death point, the XP is there. But when you respawn, you do not retain the levels.

    Any idea why this would be occurring? I am on CraftBukkit 1.3.1 R1.0
     
    cdncampbell likes this.
  16. Offline

    nagihodheer

    can i disable sign post ?


    bugged
    with
    ItemDetector
    - die in sensor door and sign appear ItemDetector doesn't work anymore
     
  17. Offline

    cdncampbell

    I am thinking you may have downloaded the initial release of the plugin, can you confirm that you are using GraveRobberPlugin-v1.8.1.jar ? If so, then I will have to blow up my son a few times to figure out what is going on ;)

    Yes you can in the next release, which should be ready soon!

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

    G.D.JACKS

    Ok decided to give this a try the mod loads and seems to be running how ever it dose not respond to any commands or show up in the /help, or create and config files on the server plugins folder. I am running 1.3.1-R1.0 What did I do wrong here?

    *edit* Also mod seems to be giving more exp than they had after death.
     
  19. Offline

    cdncampbell

    Hi there,

    The commands are to be imemented as of the 2.0.0 release. If you download the 1.8.1 release the commands will not be available to you. So the plugin will load and you will only see something happen upon death. With regards to the xp, it's mathematically impossible for it to give more than you originally had.


    If you want to try the current 2.0.0 beta code you can check it out on github but you will have to compile your own jar
     
  20. Offline

    G.D.JACKS

    Ok will wait for the 2.0 have no idea how to compile. :pHow ever extra exp is left behind at the sign which can be collected if a player goes back to the area. I went from 1, 8, 11, 13 levels of exp.
     
  21. Offline

    cdncampbell

    Oh! That's a whole different story then, I shall look at that tonight when I get home. Thanks for clarifying :)

    I added the proper code to stop the exp from dropping, it will be available in the 2.0 release :D thanks again for letting me know about that.

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

    wakinglife142

    yes, I am using version 1.8.1, I just confirmed.

    I have seen this, as well. One player died and went from level 17 to level 31.
    Most of the time, they get no XP, but when they DO get XP, it's more than they started with.

    This was not after running back, they respawned as a higher level.

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

    cdncampbell

    I fixed the exp orb issue, now I have to revisit the level calculation. I'll set aside some time tonight and update that, and complete the last work on 2.0. Hopefully in a day or so 2.0 should be released and the calcs will be fixed :)

    *Edit* I think I found the issue, I was assigning a level and assigning a new total exp. When the player recieved the level it calculated the new level from the total exp. So, I have assigned the new level to be 0 and am only setting the new exp. The new level should be calculated from that value automatically. I will test this tonight :)
     
  24. Offline

    wakinglife142

    Sounds awesome :)

    Any idea on why the XP isn't reassigning at all sometimes? I'm not super worried about it, even if all you kept was your inventory this would still be an excellent mod.
     
  25. Offline

    cdncampbell

    Not sure about the not reassigning, what level was the player at the time? I made the exp assigment start at level 2 because the exp calculations had little affect on the existing exp on levels below 2.
     
  26. Offline

    R1x

    this server is using it and this plugin rules

    [​IMG]
     
    wakinglife142 and cdncampbell like this.
  27. Offline

    wakinglife142

    I tried this several times on my admin account, it happened anywhere from level 2-58 as far as I can tell. Once again, it's not every time. i'd say about 25-50% of the time you stay at level 0, the rest of the time you increase in levels.
     
  28. Offline

    uhak00

    hi this plugin doesn't work for me like all other death recover plugins i tried. Do you have to set it up somehow because I only dragged and dropped it in my plugins folder and unpacked it anyway this would be agreat plugin
     
  29. Offline

    cdncampbell

    You don't need to unpack it, just drop it in the plugins folder :) Did you receive any errors in the server console?

    Just so everyone knows, the exp clacs have changed in 1.3.1 and I am working to update them accordingly now :D

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

    cdncampbell

    Version 2.0 of the plugin is complete. I will commit and push the code tonight and I will also post the jar file and update the download links.

    There is only one known issue, when you respawn the exp and lvl bar does not update correctly. The exp and level are presnt but will only be updated upon gaining more exp or by logging off and logging in again. This is a known bug in the Minecraft 1.3.1 client as documented here:

    http://www.minecraftwiki.net/wiki/Known_bugs/latest#Gameplay

     

Share This Page