[INACTIVE][INFO] Stats [v0.99] and Achievements [v0.99][1000]

Discussion in 'Inactive/Unsupported Plugins' started by nidefawl, Jan 20, 2011.

  1. Offline

    nidefawl

    Stats and Achievements

    This plugin will be found at dev-bukkit soon
    sockenklaus will manage this project in the future (thank you!)

    Features:
    • Stats
      • Logs many actions that players do!
      • Block Destoys(for each block), Item Uses, Damage Dealt, Deaths per type, Kills per type, Played-Time (with AFK flags!)...
      • '/stats' shows basic stats and more
      • '/played' shows your play-time on the server
      • Keeps all stats within a SQLite or MySQL Database
      • Your plugin can support Stats!
    • Achievements
      • Give users achievements when they have completed something!
      • e.g. MintyAnt mined 500 obsidian. Message "You have no life!" Appears, and they recieve the "No Life" achievment and 10 Diamond as a prize
      • Achievement-Conditions:
        • <achievement-name>
        • New in 0.9:
          • group <group-name>
          • permission <permissionstring>
        • can be multiple seperated by ;
        • each of them can have a inverting '!' (!group jailed;!badachievement)
        • can be none of course :)
      • Reward-Commands:
        • /item <name or id>
        • /money <negative or postive amount>
        • /group <group-name>, /warp <warp-name>
        • New in 0.9: Native console commands:
          • /op *;/time 13500;/god *;/kick *
          • use any console command that works on your console
        • New in 0.9 (GroupManager):
          • addsubgroup <groupname>
          • removesubgroup <groupname>
          • addpermission <permissionstring>
          • removepermission <permissionstring>
    Source:
    Download:
    Newest (Fix for updated plugins (iConomy, BOSEconomy, Essentials, Permissions 3)
    Old (Tested with #617 (works up to 1000!))
    If you still have problems with CraftIRC or iConomy + Achievements try one of the following version:
    Outdated versions:
    Configuration:
    Permissions for v0.9+:
    Show Spoiler

    Achievements:
    achievements.check - only players that have that permissions will be checked + awarded
    achievements.view.own - grants access to /achievements (/ach)
    achievements.view.list - grants access to /listachievements (/listach)
    achievements.admin.check - grants access to /checkachievements (/chekcach)
    achievements.admin.reload - grants access to /reloadachievements (/reloadach)

    Stats:
    stats.log - only actions of players that have that permissions will logged
    stats.view.own - allows a player to watch his own stats with the /stats command
    stats.view.others - allows a player to watch other players stats with the /stats <player> command
    stats.view.playtime - allows a player to watch his play-time with the /played command
    stats.admin - grants access to /stats debug + /stats set + /stats list

    Latest Changes:
    Show Spoiler

    Stats v0.99
    • Fix for Permissions 3.0
    Stats v0.985
    • Permissions fixed
    • Code cleanup
    • More settings, to disable logging of some events
    Stats v0.98
    • Attempt to fix plugin dependencies
    Stats v0.972
    • Attempt to fix Classpath and Updater... again
    Stats v0.96 (03-04-11)
    • Forgot to update internal version
    • Forgot wolf
    Stats v0.95 (03-04-11)
    • Updated to latest RB (617)
    • Better Permissions/GroupManager plugin handling
    • removed the usage of os-specific sqlite libraries. (lets see what happens)
    Achievements v0.99
    • Fix for newest Economy plugins
    Achievements v0.981
    • Attempt to fix plugin dependencies
    • fixed a typo with the 'achievements-definitions-sql'. Check your config!
    Achievements v0.972
    • Attempt to fix Classpath and Updater... again
    Achievements v0.96 (03-04-11)
    • Forgot internal version
    • Forgot wolf
    Achievements v0.95 (03-04-11)
    • Updated to latest RB (617)
    • Better warp-command handling for Essentials


    full Stats changelog
    full Achievements changelog

    Supported plugins:
    Tools:
    Please donate --> [​IMG]


    Please read the Wiki before posting:

     
  2. Offline

    nidefawl

    latest bukkit seems to break it!
     
  3. Offline

    xtream1101

    I am getting this error...
    Code:
    2011-01-30 12:01:58 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-30 12:01:58 [INFO] Loading properties
    2011-01-30 12:01:58 [INFO] Starting Minecraft server on *:25567
    2011-01-30 12:01:58 [INFO] Preparing level "world"
    2011-01-30 12:01:58 [INFO] Preparing start region
    Preparing spawn area: 20%
    Preparing spawn area: 73%
    2011-01-30 12:02:01 [INFO] [General] version [2.1] (Salvez) loaded
    LWC     [v1.46] Loading shared objects
    Config  [v1.46] Loaded 7 config entries
    2011-01-30 12:02:01 [INFO] [Permissions] version [1.9] (Handler) loaded
    2011-01-30 12:02:01 [INFO] WorldEdit 2.15.2 loaded.
    2011-01-30 12:02:01 [INFO] WorldEdit: Permissions plugin detected! Using Permiss
    ions plugin for permissions.
    2011-01-30 12:02:01 [INFO] WorldGuard 3.1.2 loaded.
    2011-01-30 12:02:01 [INFO] WorldGuard: Permissions plugin detected! Using Permis
    sions plugin for permissions.
    2011-01-30 12:02:01 [INFO] WorldGuard: Single session is enforced.
    2011-01-30 12:02:01 [INFO] WorldGuard: TNT ignition is PERMITTED.
    2011-01-30 12:02:01 [INFO] WorldGuard: Lighters are PERMITTED.
    2011-01-30 12:02:01 [INFO] WorldGuard: Lava fire is blocked.
    2011-01-30 12:02:01 [INFO] WorldGuard: Fire spread is UNRESTRICTED.
    2011-01-30 12:02:03 [INFO] [MYHOME] Permissions enabled.
    2011-01-30 12:02:04 [INFO] BigBrother 1.4.3 initialized
    HomeLite: Loading homelist...done.
    HomeLite version 1.3B is enabled!
    LWC     [v1.46] Loaded command : Admin
    LWC     [v1.46] Loaded command : Create
    LWC     [v1.46] Loaded command : Free
    LWC     [v1.46] Loaded command : Info
    LWC     [v1.46] Loaded command : Modes
    LWC     [v1.46] Loaded command : Modify
    LWC     [v1.46] Loaded command : Unlock
    LWC     [v1.46] -> PLAYER_COMMAND
    LWC     [v1.46] -> PLAYER_QUIT
    LWC     [v1.46] -> ENTITY_EXPLODE
    LWC     [v1.46] -> BLOCK_INTERACT
    LWC     [v1.46] -> BLOCK_DAMAGED
    LWC     [v1.46] -> BLOCK_RIGHTCLICKED
    LWC     [v1.46] Dev mode: FALSE
    LWC     [v1.46] Using Nijikokun's permissions plugin for permissions
    LWC     [v1.46] Loading SQLite
    PhysDB  [v1.46] Creating physical tables if needed
    MemDB   [v1.46] Creating memory tables
    SQLite  [v1.46] Using: Pure
    2011-01-30 12:02:05 [INFO] [Stats-v0.2c] Using Nijis Permissions for permissions
    
    2011-01-30 12:02:05 [INFO] [Stats-v0.2c] vv0.2c Plugin Enabled
    2011-01-30 12:02:01 [INFO] Uptime 1.2 Successfully Loaded
    SimpleWarp version 1.5 is enabled
    2011-01-30 12:02:05 [INFO] Done! For help, type "help" or "?"
    138 recipes
    Jan 30, 2011 12:02:17 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_LOGIN to Stats
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getInheritancePermissions(Control.java
    :321)
            at com.nijiko.permissions.Control.permission(Control.java:190)
            at com.bukkit.nidefawl.Stats.Permissions.NijiPermissionsResolver.permiss
    ion(NijiPermissionsResolver.java:33)
            at com.bukkit.nidefawl.Stats.StatsPlayerListener.onPlayerLogin(StatsPlay
    erListener.java:275)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:150)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:201)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.java:116)
            at net.minecraft.server.NetLoginHandler.b(SourceFile:113)
            at net.minecraft.server.NetLoginHandler.a(SourceFile:47)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-30 12:02:17 [INFO] xtream1101 [/205.162.53.90:58954] logged in with enti
    ty id 126
    Player count: 1
    Exception in thread "Timer-1" java.lang.NullPointerException
            at com.nijiko.permissions.Control.getInheritancePermissions(Control.java
    :321)
            at com.nijiko.permissions.Control.permission(Control.java:190)
            at com.bukkit.nidefawl.Stats.Permissions.NijiPermissionsResolver.permiss
    ion(NijiPermissionsResolver.java:33)
            at com.bukkit.nidefawl.Stats.Stats.saveAll(Stats.java:391)
            at com.bukkit.nidefawl.Stats.Stats.access$0(Stats.java:387)
            at com.bukkit.nidefawl.Stats.Stats$SaveTask.run(Stats.java:159)
            at java.util.TimerThread.mainLoop(Unknown Source)
            at java.util.TimerThread.run(Unknown Source)
    Jan 30, 2011 12:02:24 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to General
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getInheritancePermissions(Control.java
    :321)
            at com.nijiko.permissions.Control.permission(Control.java:190)
            at com.nijikokun.bukkit.General.iListen.onPlayerCommand(iListen.java:679
    )
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:135)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:201)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:554)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:528)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:65)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Jan 30, 2011 12:02:24 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to LWC
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getInheritancePermissions(Control.java
    :321)
            at com.nijiko.permissions.Control.permission(Control.java:190)
            at com.griefcraft.listeners.LWCPlayerListener.onPlayerCommand(LWCPlayerL
    istener.java:52)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:135)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:201)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:554)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:528)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:65)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-30 12:02:24 [INFO] xtream1101 tried command: time day
    2011-01-30 12:02:26 [INFO] xtream1101 lost connection: disconnect.quitting
    2011-01-30 12:02:26 [SEVERE] [Stats-v0.2c] Stats attempting to unload an player
    that's not loaded: xtream1101
    
    
    
    I have the newest Permissions 1.9 as well. When this happens even tho I have full admin rights I can not use any command at all.

    P.S. When the stats was working I loved it! Also the move will only update in blocks of 100?
     
  4. Offline

    Hypo2010

    I get this Error. Don't know what it mean cuz in my achievement.txt are more then 40 Achievements

    Code:
    08 [INFO] [Permissions] version [1.9] (Handler) loaded
    2011-01-30 19:16:08 [INFO] [SimpleShop] version [1.1] (Dime) loaded
    2011-01-30 19:16:08 [INFO] [Achievements]: Found required plugin: Stats
    2011-01-30 19:16:08 [INFO] [Achievements]: Found supported plugin: iConomy
    2011-01-30 19:16:08 [SEVERE] [Achievements]:Exception while reading achievements.txt (1:50k Schrittte:1:stats:move:50000:Du bist 50.000 Schritte gegangen!!!:item diamond 3)
    java.lang.NumberFormatException: For input string: "1"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at com.bukkit.nidefawl.Achievements.Achievements.loadAchievementList(Achievements.java:365)
        at com.bukkit.nidefawl.Achievements.Achievements.onEnable(Achievements.java:126)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:359)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:61)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:42)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
        at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:181)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-30 19:16:08 [INFO] [Achievements]: achievements.txt is empty
    2011-01-30 19:16:08 [INFO] [Achievements]: Achievements v0.2 Plugin Disabled
    
    Hope someone can help me!! I use craftbukkit build #169 and the newest Stats + Achievements version
     
  5. Offline

    Ray

    You saved it with as UTF8 - File. If you edited with Notepad try "Save as" and select below "Ansi". Its just the wrong encoding.
     
  6. Offline

    XhiZor

    OK now I added stats to permissions (And put the .jar in plugins folder of course) and my console gives me this http://tinypaste.com/d1730 it says that achievements.txt is empty but it's not and it's where it should be.
    P.S. Stats works perfectly
     
  7. Offline

    atristoffate

    Can I see your achievements.txt file, please? :D
     
  8. Offline

    XhiZor

    There it is http://tinypaste.com/1d346, something wrong with it?
     
  9. Offline

    atristoffate

    In the console log it looks like it errors because of an achievement ((1:Master WoodCutter:1:blockdestroy:wood:2:Destroy 2 Pieces of Wood:item goldaxe 1))

    But I don't see that achievement in your achievements.txt. Are you sure it's pointing to the correct file when searching for achievements?


     
  10. Offline

    XhiZor

    You can't see that achievement because now i changed my achievements.txt, console gives me errors with every first achievement no matter how much I delete errors continues till the achievements.txt is completely empty. Here's the log with this achievements.txt http://tinypaste.com/c0915e
     
  11. Offline

    atristoffate

    Oh wow. Hmmm, I'm stumped. Lemme poke around a bit more and see if I can recreate the error.
     
  12. Offline

    nidefawl

    what version of bukkit? try not to use builds after #169
    does lwc the same error without stats installed?

    yes, move is updated each 100 blocks

    it should recreate a working file when you move or delete your current txt.
    if this file does not work after editing you should try Rays suggestion

     
  13. Offline

    xtream1101

    I realized that it was my permissions plugin that was causing all the problems so I created a new config file and now it all works great! Sorry for the mix up.

    Great job on this plugin by the way because I love it!! Now to create a custom php script to have a cool looking stats page on my site :)
     
  14. Offline

    SeeD419

    This is probably asking a bit much, but if you get bored and have some time, it would be cool if you could integrate a stat for trivia points.
     
  15. Offline

    racu

    achievement reward appear too late.

    If I satisfy some acheivement, reward comes about 5~10 minute later
     
  16. Offline

    SeeD419

  17. Offline

    nidefawl

    you can use /checkach
    and check the config-file. you can set the delay when achievements are checked.
    the default value is 300 seconds. i will set the default down to 60 seconds for future releases.
    i think server reload was implemented after 0.2c was put out
    --- merged: Jan 31, 2011 4:50 PM ---
    I don't get what you mean by trivia points
     
  18. Offline

    SeeD419

    I apologize I should have clarified.

    The Trivia plugin here in the bukkit releases.

    Not really a big deal, it would just be nice to give rewards for Trivia points. I suppose I could also ask the author of that plugin...
     
  19. Offline

    nidefawl

    I like to support as many plugins as possible!

    Well, the problem is most developers seem not to want their plugins beeing supported.

    There is no way to access the reward function in Trivia as it's defined in the PlayerListener-class which is not public....
    Same happend to me for CraftIRC and MyWarps.

    Currently (speaking of my current dev-state) I only support warping if you use Essentials, or have a file called warps.txt in the right format.
    You can set the players group if you use Permissions.
    It reads in the the plugins/Permissions/config.yml, modifies it and saves it.
    It works, but I don't like how its done....

    Another thing I would like to see, is adding a custom permission to a player.
    I don't know why Permissions plugin does not offer any public modify-functions by itself.
    If you think about security: I can still read the file and modify it.....
     
  20. Offline

    SeeD419

    Well that's the thing though, the Permissions plugin works great.

    It just gives me those errors when I do a reload. I asked them in the thread about it and they pointed me to your plugins. I'm not sure why they're having trouble reloading is the thing.

    I'll request that the author of Trivia will add support for this as well. It's not a huge deal, but it would be nice.
     
  21. Offline

    nidefawl

    I know where the trouble is :)
    Fix will be in next update
     
  22. Offline

    SeeD419

    Awesome nidefawl! Glad to hear it!
     
  23. Offline

    MatCat

    Is this working on b186?
     
  24. Offline

    theLephty

    there is something wrong with the damage stat tracker:

    one user got this:

    damagetaken:Creeper:44
    damagetaken:total:1232
    damagetaken:FIRE:240
    damagetaken:Spider:570
    damagetaken:(null):0
    damagetaken:FALL:46
    damagetaken:DROWNING:124
    damagetaken:Zombie:590
    damagetaken:Skeleton:28

    I was with her when it happened, she lost 2 hearts, and got nearly all our damage achievements that were only activated a few minutes earlier, ie the damage counts hundreds per heart sometimes, specially for zombies and spiders it seems. Could be bukkits fault, or ever the server tech I suppose, just figured I'd mention it, we've since disabled all damage achievements since they aren't reliable.
     
  25. Offline

    nidefawl

    Could you send me your achievements.txt (or just the entrys on damagetaken)?

    Yes the damage amounts on different entity events seem to be off scale
    As its now possible to spawn mobs i can do some better testing.
    I hope i can figure that out soon and upload the new version

    And I added a toggle for debugging all updatestat-calls.
    You can see the playername, stat-name and value on each stat update if debugging is enabled..
     
  26. Offline

    Kainzo

    Had some massive lag with this one and 161-166 installed. It needs to slim down and have less overhead.
     
  27. i made webstats for this plugin
    u can check it here http://tinyurl.com/6cq6znd
    to downlaod http://tinyurl.com/6eebo3x

    edit the dbconnect.php file to connect to youre database
    edit the language.php file for german or english

    if u have any ideas, graphics, problems or something else send me a pm :)
     
  28. Offline

    theLephty

    # damage
    1:01-Private Pain!:1:damagetaken:total:8:You have taken 8 damage!:item bread 1
    1:02-Corporal Pain!:1:damagetaken:total:16:You have taken 16 damage!:item bread 2
    1:03-Sergeant Pain!:1:damagetaken:total:32:You have taken 32 damage!:item bread 4
    1:04-Lieutenant Pain!:1:damagetaken:total:64:You have taken 64 damage!:item bread 8
    1:05-Captain Pain!:1:damagetaken:total:128:You have taken 128 damage!:item bowlwithsoup 4
    1:06-Major Pain!:1:damagetaken:total:192:You have taken 192 damage!:item bowlwithsoup 8
    1:07-Colonel Pain!:1:damagetaken:total:256:You have taken 256 damage!:item bowlwithsoup 16
    1:08-General Pain!:1:damagetaken:total:320:You have taken 320 damage!:item cookedpork 2
    1:09-Awesomesauce Pain!:1:damagetaken:total:384:You have taken 384 damage!:item cookedpork 4
    1:10-Lord Pain!:1:damagetaken:total:448:You have taken 448 damage!:item cookedpork 8
    1:11-Darth Pain!:1:damagetaken:total:512:You have taken 512 damage!:item goldenapple 4
    1:12-Buttercup Elite Pain!:1:damagetaken:total:1024:You have taken 1,024 damage!:item goldenapple 16
    1:13-Prime Pain!:1:damagetaken:total:2048:You have taken 2048 damage!:item goldenapple 32

    I was hoping that 20 hearts per life, that the 512 damage would take a long time, like 25 full deaths, or you know, they heal themselves, but 25 deaths worth of hearts.
     
  29. Offline

    Kayonesoft

    What the hell? Enlisted suddenly turning into officers?
     
  30. Offline

    theLephty

    Luckily I have no idea what that means, but I just stole (most of) the ranks off the egyptian military wiki...
     
  31. Offline

    Kayonesoft

    Oh well then I have no idea how the Egyptian military works.
    Enlisted and Officers are seperate rank systems in the US Military.
    Private -> Command Sergeant Major
    2nd Lieutenant -> General
    Sorry about that. I was in the military so it's something they programmed us with.
     

Share This Page