[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.

    Features:
    • 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]

    Changelog:
    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
    Todo:
    • 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.
    Configuration:
    • 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.)
    Permissions:
    • 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!

    ~Pathogen-David
     
    KragTheDark likes this.
  2. Offline

    Indyhouse

    Hi! We love this plugin on our server, but we are finding that players killed in lava by other players (dropping lava from a bucket in PvP) die and lose their stuff, regardless of the number of lives they have.
     
  3. Offline

    Pathogen David

    Do you have something that makes lava kill them instantly or something? When a player is killed by a plugin (EG: No damage is actually dealt, like with a /kill command) Pathogen Player Lives does not get a chance to save the items. Players dying on my server have no issues with dying in lava and loosing stuff. Also, is it a chance that their stuff is just invisible due to the lag glitch?
     
  4. Offline

    Cryt

    I have error messages also with the last versions of iconomy and the version 740 of bukkit.

    Code:
    17:57:39 [SEVERE] Could not pass event PLUGIN_ENABLE to playerLives
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at com.pathogenstudios.playerlives.playerLives.onPluginEnable(playerLive
    s.java:457)
            at com.pathogenstudios.playerlives.plServerListener.onPluginEnable(plSer
    verListener.java:10)
            at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.j
    ava:408)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:633)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
            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:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 14 more
    
    17:57:39 [SEVERE] Could not pass event PLUGIN_ENABLE to playerLives
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at com.pathogenstudios.playerlives.playerLives.onPluginEnable(playerLive
    s.java:457)
            at com.pathogenstudios.playerlives.plServerListener.onPluginEnable(plSer
    verListener.java:10)
            at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.j
    ava:408)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:633)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  5. Offline

    Pathogen David

    You need to either downgrade iConomy or wait until next Saturday. The new iConomy did not add any immediately enhancing features, so unless you already have other plugins taking advantage of its new features it will not be adding anything for you.

    Actually, here:
    I had some time to add permissions and upgrade iConomy for playerLives a while ago, but I have not had as much time to test it as I would like. If you guys are willing to potentially sacrifice stability for functionality and the new iConomy, then: [Download 1.3.0 BETA]

    I belive all of the permissions nodes are:
    Code:
    playerlives.canUse
    playerlives.checkSelf
    playerlives.checkOthers *
    playerlives.change *
    playerlives.buy *
    
    * Normally Op-only if you do not have permissions.

    Let me know if you have any issues. One thing I noticed when I was skimming for the node names was I think players without the canUse permission will get spammed when they respawn. I will fix that for the official 1.3.0 release.

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

    Saigen

    v1.3 beta seems to be working fine atm, but i dont think it created a config file
     
  7. Offline

    Pathogen David

    It only makes the config file if the directory does not exist. If you have an empty directory then remove it and /reload.
     
  8. Offline

    Jagwah

    Hey; good job with the plugin! I love the idea of charging players a premium to keep their inventory after they die.

    However, I run an RP server and the use of global commands kinda ruins the players immersion. I know that you said that there was possible upcoming support for SignShop -- is that definitely in the works? And if not, is there any way that I can allow players to buy lives via something like SignCommand, but not using the global command?

    Thanks.

    EDIT: I think I've found a way to do it. Once this plugin supports permissions, I can use SignCommand's 'Fake User' to access the command, essentially restricting people from using the command except through the sign. Solved my own problem. :p Thanks anyway!
     
  9. Offline

    Pathogen David

    @Jagwah
    I am not even sure if SignShop supports hook-in's but if it does I intend to add it. I hate the global commands on my own server so we are moving away from them as well.

    If you download the latest beta (see up a bit) it has Permissions support. (But also requires iConomy 5)

    On a somewhat unrelated note:
    https://github.com/Bukkit/CraftBukkit/commit/5ee3f0f2a2317b016dc7b3443998fdf300fc5593
    Ooh, Bukkit changed the way inventory is handled upon death. This should allow the inventory capture to be less hack-tastic and would remove some bugs (like the /kill command destroying drops.)
     
  10. Offline

    Jagwah

    Awesome, thank you. A bit hesitant to upgrade to iConomy 5 as not all related plugins support it, but I'll come back in time when it's a bit more widely integrated.

    I'd be interested in hearing how you're attempting to move away from commands and towards player events/interaction, if you had any breakthrough ideas (as off-topic as it is).
     
  11. Offline

    Pathogen David

    @Jagwah
    Yeah, it is a bit obnoxious because it does not bring much to the table but breaks a lot of forward/backward compatibility. When I officially release 1.3 I will probably release an iConomy 4 and iConomy 5 build since my server relies on DynamicMarket which is also only iConomy 4 last I checked.

    Right now it is more of a conceptual goal. In my ideal world we will have an NPC-based shop, and maybe a required client mod or two.
     
  12. Offline

    Jagwah

    Oh, the flexibility of being able to code Java - if you can't find a suitable plugin, you can always write your own. As a lowly non-coder, I've found this plugin submission which may or may not be of any use to you, but as I cannot code myself it's something I'm keeping a close eye on.
     
  13. Offline

    Pathogen David

    Oooh, not sure if I want to use that for my economy, but that sounds awesome for our railroad...
     
  14. hi my server tipping
    "/buylives"

    "server needs Iconomy to enebale buying lives!"

    help plz
     
  15. Offline

    Pathogen David

    For whatever reason, playerLives is not seeing iConomy. Are there any errors in the console? What version of ppl do you have? What version of iConomy?
     
  16. No errors are: / use the latest version. I have 5.0 and iconomy
     
  17. Offline

    Pathogen David

    Latest stable or beta? 1.2 or 1.3?

    Also, can you enable verbose mode in the ppl config file and send me your console output? You can PM it if you don't want it sitting here.
     
  18. Offline

    dak393

    Why not use worldguard and disable fall damage (or any other type of damage you want) or one of the many god mode plugins?
     
  19. Offline

    xlilcasper

    Anyway we could get a command to toggle using a life on or off? something like /livesoff and when you die you won't lose a life but your inventory won't be saved either? I have a pvp arena this would be needed for.
     
  20. Offline

    Elvis

    did you update this to Build 766 yet
     
  21. Offline

    Pathogen David

    @dak393
    My plugin makes it so that death is still inconvenient, those make it nonexistent.

    @xlilcasper
    If that isn't on the official todo list it has been in my brain's todo list.

    @Elvis
    Generally things do not change enough between bukkit builds to break plugins like this. However, I have not built against the 766 craftbukkit or tested it in 766 yet.
     
  22. Offline

    timmytimster

    How about BOSEconomy support? I really did like this plugin when I used iConomy, but after all that B.S. with iConomy 5, I switched to BOSE. I just think it would be awesome if you did integrate it.
     
  23. MySQL support would be great!
     
  24. run on 766? thnaks :)
     
  25. Offline

    Indyhouse

    I don't think this is working with 766. I get errors like this hundreds of times in my log:

     
  26. :( please update thisis last plugin for my server :(
     
  27. Offline

    dak393

    well the way Itssnowing said it made me think that he was using this as a way of not lossing all his stuff when he falls since he also mentioned he was on a build server taking away fall damage seems like a good idea or if the server is more casual than that disabling all damage entirely. I was mainly just giving him alternative ways if he so desired. BTW has the item duping bug been fixed?
     
  28. Offline

    Shooty

    @Pathogen David Hey, you'r plugin is soo cool but i had an request, can you make support for multi-world ? For exemple, i have a PVP world and i would like my players don't had lives but they keep them lives on the real world it's possible ? Thanks :D !

    (Sorry for bad english i'm french)
     
  29. Offline

    Pathogen David

    @timmytimster
    Mayhaps. I will look into it.

    @Joy
    Top of my priorities right now!

    @vejbuch
    My test server is still 733, and people have reported issues with 766. I am thinking I might just wait until the Minecraft update comes out... (Although I will check, may be a very simple issue.)

    @dak393
    True, true. And duping? As far as I know there has never been a release with duping issues. Just invisible items which is only caused by lag and a bug in minecraft.

    @Shooty
    Good idea. I will put it on the todo list.

    -------------------------

    EDIT: Changed my mind. Working on update now. Also abstracted iConomy so I can add other economies easier.

    EDIT EDIT: Hmm, latest (1.3.0) Pathogen Player Lives seems fine over here with Bukkit 740, 766, and 798. You guys have iConomy 5?

    I just released 1.4.0 (BETA) which is currently mostly a bugfix release. It also supports both iConomy 4 AND iConomy 5 (It should auto-detect.) It also (internally) includes many changes that will allow other economies and databases (MySQL soon!)

    If you can spare it, please test this new version on your server and let me know of any problems. One thing I have noticed is that it will suppress drops if the player does not have canuse.

    As always, see main topic for details.

    1.4.1 (BETA) has MySQL support! I believe it is fully stable, but I have not had time to throughly test it to my standards.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  30. I don't see any SQL info in the config,

    livesDb.properties is empty.

    Are you using Bukkit's SQL persistence? If so, I don't see any tables created.

    ===

    Also, getting these already:

    Code:
    10:28:54 [SEVERE] Could not pass event PLUGIN_ENABLE to playerLives
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at com.pathogenstudios.playerlives.playerLives.onPluginEnable(playerLives.java:457)
            at com.pathogenstudios.playerlives.plServerListener.onPluginEnable(plServerListener.java:10)
            at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:302)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:757)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  31. Offline

    dak393

    ah ok someone in another forum was mentioning that your plugin had the bug a while ago. Guess I was misinformed good to hear. :)
     

Share This Page