[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

    AHgpeu

    more...
    Code:
    2011-10-03 22:20:32 [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:484)
            at com.pathogenstudios.playerlives.plServerListener.onPluginEnable(plSer
    verListener.java:10)
            at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.j
    ava:569)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:948)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    and...
    iConomy 6 ?
     
  3. Offline

    Pathogen David

    @Evilhaunting
    D'oh! Didn't think about that. I will see how hard that would be to implement. Not sure if I can cancel death events though.

    @AHgpeu
    If you're using iCo 6, you need to upgrade to the Pathogen PlayerLives 1.6 Pre-Release that I forgot to push out.

    ~David
     
  4. Offline

    Evilhaunting

    One more thing i'm a plugin tester i run a server of my own AVOUISLY and i'd be willing to test plugins for you.
    P.S. Can you make the Pathogen Player lives plugin not REQUIRE spout and make it OPTIONAL

    Edit: Like can you make two downloads one that has spout and one that doesn't?
     
  5. Offline

    Pathogen David

    You aren't the first to have offered to help test. I will probably get something figured out soon...

    Spout should be optional with the current releases. I'm trying to avoid having to dual release, but it may be necessary.
     
  6. Offline

    Tha_Wolf

    Id love to see this also support the SpoutBackpack plugin.
     
  7. Offline

    Pathogen David

    Good idea!
    Could you add that to the BukkitDev tickets page, it'll be much easier for me to keep track of it and not forget.
     
  8. Offline

    dmitlantis

    playerlives.canuse is not working!
    Is determinating players who can save inventory and who can't so hard? It's already second plugin with that problem!
     
  9. Offline

    Pathogen David

    Well that is not the most polite reply in this thread! canuse works fine for me last I checked. Let me know when you want to be civil and I can outline some information you can give me to help me help you help us all.
     
  10. Offline

    Massimo1993

    @Pathogen David

    i receive this error when i close the server

    Code:
    [SEVERE] Error occurred while disabling playerLives v1.5.2 (Is it up to date?): null
    java.lang.NullPointerException
        at com.pathogenstudios.playerlives.dbWrappers.flatfile.close(flatfile.java:96)
        at com.pathogenstudios.playerlives.playerLives.onDisable(playerLives.java:104)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:176)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:978)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:166)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  11. Offline

    Pathogen David

    Enable automatic flat-file database saving or what for the next release. The error should not be harmful for now.
     
  12. Offline

    Pathogen David

    @Evilhaunting and whoever else asked for this a while back (sorry, big thread now...)

    There are now nightly builds available for Pathogen Player Lives! People who are willing to test and want to live on the bleeding edge, you feedback would be greatly appreciated!

    You can find more information on the nightly builds on the BukkitDev page!
     
  13. Offline

    Massimo1993

    @Pathogen David

    hi excuse me but i receive this error

    Code:
    [SEVERE] Unable to save plugins/playerLives/livesDb.properties
    java.io.FileNotFoundException: plugins/playerLives/livesDb.properties (Too many open files)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:104)
        at com.pathogenstudios.playerlives.PropertyHandler.save(PropertyHandler.java:72)
        at com.pathogenstudios.playerlives.PropertyHandler.setInt(PropertyHandler.java:168)
        at com.pathogenstudios.playerlives.dbWrappers.flatfile.save(flatfile.java:70)
        at com.pathogenstudios.playerlives.dbWrapper.close(dbWrapper.java:20)
        at com.pathogenstudios.playerlives.dbWrappers.flatfile.close(flatfile.java:97)
        at com.pathogenstudios.playerlives.playerLives.onDisable(playerLives.java:104)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:176)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:978)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:166)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  14. Offline

    Pathogen David

    That's a new one! Could you please go file it as a ticket on the BukkitDev page so I can keep track of it and remember to fix it? Thanks!

    ~David
     
  15. Offline

    PatPeter

Share This Page