[MECH/ECON]Pathogen Player Lives v1.5 - 1up! Save your inventory! [BOSE+iConomy+Spout Support][1000]

Discussion in 'Inactive/Unsupported Plugins' started by Pathogen David, Apr 3, 2011.

  1. Offline

    Pathogen David

    I will no longer be updating the forum topic on a regular basis. Please watch the new BukkitDev page for updates!

    playerLives - Pathogen Player Lives [Download] [Source on BitBucket]
    Version: v1.5.0
    Like this plug-in? [Donate]

    Hey everyone! Sorry I got super inactive over the past 2.5 or so months! For some reason I stopped getting watch messages and did not realize how active the topic had gotten during my absence. I'm going to make more frequent releases, especially with the magic that is Spout renewing my interest in Bukkit.

    This plug-in adds lives to players. When you die a life is subtracted, but when you respawn you will still have your full inventory. If you had no lives, you stuff is dropped as normal where you died and you spawn with nothing.

    • Players can keep stuff if they die.
    • Use iConomy or BOSEconomy to buy lives! (iConomy 4 AND iConomy 5 compatible)
    • Optional punishment for dying (Loose money in the economy.)
    • Infinite lives option
    • Optional Spout notifications
    • MySQL or Flatfile storage engine
    • PermissionsBukkit support
    • A great way to make your server creative and still have a challenge!
    [Download Pathogen Player Lives]
    [Source Code on BitBucket]

    Version 1.5.0
    • Upgraded to Bukkit 1000!
    • New death handling! No more missed death events from /kill commands!
    • MySQL Support!
    • BOSEconomy Support!
    • (Optional) Basic Spout notification support!
    • Supports new PermissionsBukkit system! (Old school Permissions is still supported.)
    • More exclamation marks!
    Version 1.4.1 (Preview)
    • MySQL Support!
    • Permissions bug/nag fixes
    Version 1.4.0 (Preview)
    • iConomy 4 support (Auto detects 4 and 5!)
    • Support for MySQL underway! (Target: 1.4.1)
    • Support for alternate economies now easier to do. (However, currently no target for other economies.)
    • Major source code overhaul
    Version 1.3.0 (Preview)
    • iConomy 5 (iConomy 4 now broken)
    • Permissions!
    Version 1.2.0
    • Added infiniteLives option (Off by default)
    • Added verbose option (Off by default - no more console spam!)
    • Added player name resolution
    Version 1.1.1
    • Fixed bug with player's loosing lives on server restart
    Version 1.1.0
    • Added iConomy support
    • Added iConomy death punishment
    Version 1.0.0
    • Initial Release
    • iConomy support (To buy more lives)
    • Permissions support
    • MySQL/SQLite support
    • Reload command
    • Unlimited lives
    • Player auto-complete (and case-insensitivity)
    • Remove some debug spam (Add Verbose property)
    • Fix lag+no items bug (Can be fixed with disconnect and reconnect for now. Bug in Minecraft.)
    • Plugin activate/deactivate
    • Gold/Diamond/Other to buy lives
    • Investigate /kill command bug (Lose all lives or all drops)
    • Multiworld Support
    • Other plugin support: (Maybe)
      • Wars (Disable death in war zones)
      • Sign Shop Support (For now, SignCommands works.)
      • BOSEconomy
    Command Usage:
    • /lives [player]
      Display your or other's lives.
    • /buylives [count]
      Buy yourself some lives.
    • /givelives [player] [count]
      (Default op) Give lives to the specified person.
    • /takelives [player] [count]
      (Default op) Take lives to the specified person.
    • /setlives [player] [count]
      (Default op) Set the lives of a person explicitly.
    • lifeCost (100.0): Price of a life for iConomy.
    • defaultLives (3): The number of lives new users start with.
    • minBalanceForPunishment (100.0): The minimum amount of money a player must have to be punished for dying. (Set to 0.0 to disable.)
    • deathPunishmentCost (0.0): The amount of iConomy money a player looses for dying. (Set to 0.0 to disable.)
    • verbose (false): If verbose is true, more detailed information will be outputted to the console for debugging purposes.
    • infiniteLives (false): If true, the lives database will be ignored for deaths. (Players will not loose lives and the system will treat them as if they had at least one.)
    • dbDriver ("flatfile"): Selects which database driver to use. (Currently: flatfile or mysql)
    • dbHost ("localhost"): The database server to connect to (if applicable.)
    • dbPort (3306): The port the database server is listening on (if applicable.)
    • dbUser ("root"): The database access username (if applicable.)
    • dbPassword (""): The database access password (if applicable.)
    • dbDatabase ("playerlives"): The database to use (if applicable.)
    • dbTable ("playerlives"): The table to use (if applicable. Included to allow multiple instances in one database.)
    • playerlives.*: Enables all playerlives permissions (Maps to all permissions as true. PermissionsBukkit only!)
    • playerlives.canuse: Determines if the player can use player lives at all
    • playerlives.checkself: Determines if the player can check the number of lives they have
    • playerlives.buy: Determines if the player can buy lives with the economy.
    • playerlives.checkothers: Determines if the player can check other people's life count
    • playerlives.change: Determines if the player can change their or other's lives (This applies to set, add, and subtract.)
    Other notes:
    Currently, Flatfile only saves when the server is stopped (properly) or reloaded, so a crash can cause lives to go back to when the server started.

    Any comments or questions are highly appreciated!

    KragTheDark likes this.
  2. Offline


    Hope you don't mind if I move this to Plugin Releases. :) Thanks for fulfilling my request!
  3. Offline


    nice job ! I have been wanting a plugin like this
    Many cookies for you sir
  4. Offline


    Looks very awesome, indeed! I'll be sure to check this out when iConomy support is available.
  5. Offline


    Good but Can we have the "permissions", please ? ;-)
  6. Offline

    Pathogen David

    Juze: No problem, although I thought my thread got deleted because it my "Watch This Thread" disappeared and it vanished from my profile XD

    Everyone else:
    Thanks! I haven't looked at how iConomy's API works, but I doubt it is very complicated. Same for permissions.
    Version 1.0.0 of this plug-in currently represents a short day's worth of work, so stuff like should come out relatively soon.

    ~Pathogen David

    Update! iConomy support is now available! Along with punishment for death.

    Will be adding permissions next. (Probably tomorrow.)

    ~Pathogen David

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


    Omfg, this is cool :) Thanks, i will use it on my server ;P I hope there is no dupe bugs ;)
  8. Offline

    Pathogen David

    Cool, if you do find any bugs, let me know! The plug-in shouldn't even keep the user's inventory unless it will also suppress the drops, so it should not be a problem.

    EDIT: Source is now on BitBucket!

    ~Pathogen David
  9. Offline


    Sounds like a cool plugin, I'm going to test it out.

    Oh, and can you make a command that reloads the plugin?
  10. Offline

    Pathogen David

    You mean to force save the lives values or something? Or just reload config in general? I suppose I could.
  11. Offline


    CB: 617

    Alright, so I found a bug. For some reason, with your plugin installed, there is some lag that shows up later in the game where items just aren't showing up in a person's inventory. They have to disconnect and then come back again. Sometimes, there are also invisible creatures killing my friends, and this has only started recently.

    I'm using your default settings.

    It could just be that my server is lagging a lot, but I have never had this problem before. Nobody has complained about that until now.

    EDIT: Your commands are also broken!
  12. Offline



    there seems to be an error while loading or saving the lives of any player.

    short: cb612+playerlives1.1
    What did I've done?
    1) install jar
    2) restart server
    3) player connect
    4) automatically 3 lives
    5) restart server
    6) pathogenPlayerLives: Load lives database...
    CONSOLE: xxxxplayer = 2
    pathogenPlayerLives: Done loading Pathogen playerLives.
    7) restart server
    8) pathogenPlayerLives: Load lives database...
    CONSOLE: xxxxplayer = 1
    pathogenPlayerLives: Done loading Pathogen playerLives.

    So, the lives decrease uppon Server restart altough the player DEFINITELY NOT DIES! (he wasn't even connected, hrhr)

  13. Offline

    Pathogen David

    Do you have any errors in the console? I have not experienced this on our server but it is smaller.
    I have experienced the animals disappearing, but it did that before my mod was being developed. I believe it is a Bukkit/Minecraft bug.

    Holy crap, I can't believe I left that in there! That is an old test to make sure saving was working right.
    That should fix it, thank you for pointing this out!

    (Will update changelog later - don't have time now.)

    ~Pathogen David
  14. Offline


    It is not Compatible with Bettershop?!
    It counts...but when i use /buylives it comes an internal error.
    I think it works better with /livesbuy or whatever?! then it was bettershop compatible?!
    Hope you can help.
  15. Offline

    Pathogen David

    I have not used BetterShop before, I will look into it.
    Do you have any errors in your console?

    "I think it works better with /livesbuy or whatever?! then it was bettershop compatible?!"
    I'm not sure what you mean by that.

    ~Pathogen David
  16. Offline


    I will use when there is mysql/SQLlite support and it saves out data in real time instead of on server close.

    Looks good though.

    BTW, is this still compatible with the tombstone plugin? Or will that just duplicate their inventories?
  17. Offline


    Oh forget it :D i was thinking bettershop use /buy item count...but the command was /shopbuy item count.
    The error when i use /buylives oder /buylives 1

    2011-04-04 17:12:22 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'buylives' in plugin playerLives v1.1.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:233)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:594)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:557)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:551)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NullPointerException
        at com.pathogenstudios.playerlives.playerLives.onCommand(playerLives.java:372)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
  18. Offline


    Can you add an option to make the lives unlimited? My server is mainly for building, and I've fallen off my sky thing a couple times >.>
    (50+ meter drops? Oh man :p )
  19. Offline


    So? anyone a idea for this errors?!
    All other commands are working, i can give more lives with setlives and givelives...but only the command /buylives make this error in the logs and nothing happend.
    Ingame i can only read "a internal error..."
  20. Offline


    @Pathogen David
    There were no errors in the console. It was probably just the game lagging, or one of the other plugins making the problem show up even more than usual. Sorry, I shouldʻve known better.

    EDIT: However, the commands still weren't working. I will test out the new version of your mod now.
  21. Offline

    Pathogen David

    MySQL/SQLite support will come after permissions support. No ETA right now since I don't know how hard it will be to add. (Although I work with both on a regular basis, just not with Java.)
    I'm not familiar with tombstone, but I am guessing it leaves a chest with your stuff.
    It might dupe their inventories. Nothing to do but try.

    Hmm, that is strange. The only way I can see that happening is if the iConomy interface was working wrong. What version of iConomy do you have? (Pathogen playerLives is built for iConomy 4.65)

    Ooh, good idea. Shouldn't be hard. I'll add it with the permissions update. For now you could just give yourself a ton of lives. (And set the default to a ton too.)

    None at all? Are you sure it is installed right? NVM, I see you said that it sometimes worked for people. What other mods are you running? (Especially ones that might manipulate inventory and death.)
  22. Offline


    Awesome! Thanks :B
  23. Offline



    thanks for fixing.

    Just a suggestion: Could you make the "[player]" non case sensitive? Would be helpfull so that I don't have to type in ApLaYeRNamE :)

  24. Offline


    Yeah you right...the iconomy plugin has an error with mcstats2...iconomy was working but with this errors it has problems with player lives....now it works...thanks.
  25. Offline

    Pathogen David

    Good idea. I also intended to look into how plugins like Essentials do their partial player name lookup.

    Glad you found the problem =)

  26. This !
    Also great plugin keep up the good work !

    Also, you should really add the ability to disable lifes. So you get back to normal you-loose-item-when-you-die. But the lifes are save, and can be activated again later.
    This would be very useful for pvp battle, or games like spleef (player should not loose their valuable life, so they should be able to activate / deactivate lives.

    Thanks !
  27. Offline


    can you please make it support use of gold or dimond to buy lives
  28. Offline

    Tony Xu

    I really love this plug in but too bad it doesn't work with the plug in wars
    Can you make it that it won't take lives when you die in war zones?
  29. Offline


    Alright, with the new version, all commands work and things go pretty well. Only problem is that sometimes when you die, and you have a life, the items won't show up inside of the inventory, but say you have an item in slot 1, as soon as you click in that empty slot, all of the items you had before appear out of nowhere (as if the game forgot to update the inventory.)

    I'm pretty sure this problem was introduced with this mod. If not, it was this combined with something else. However, none of the mods I am using right now change anything death-related. The only one closest is HeroicDeath which just displays how a player might have died. I was also thinking that Essentials or Essentials Spawn could be interfering with the mechanics every now and then, but why would that be a cause of the problem?

    Other than having to refresh inventories manually every now and then, things are working just fine. Thanks! Great mod! =)
  30. Offline


    Ty for this great pluing :D

Share This Page