[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

    DJ411

    Great to Here some Sick updates Can't wait!
     
  3. Offline

    Cosmic Break

    how did u get it to show on a page like that? I would love to be able to do that!
     
  4. Offline

    joey

    plz get working for Premissions im willing to donate to ur cause if u do :p!
     
  5. Offline

    SeeD419

    Haha I don't mind at all =)

    Enjoy, as much as I enjoy using this plugin ;)
     
  6. Offline

    Kattlan

    Im checking this thread every hour :D Waiting for that supreme update!
     
  7. Offline

    Foolscap

    I'm so happy to hear you're developing it to work with Permissions, made my day (and my community, who have been clamoring for Achievements again).

    I figured I'd share my achievements.txt file as well, just in case people wanted to borrow some ideas. I know I borrowed some originally to create it :)

    http://pastebin.com/Fvxdr9Sn
     
  8. Offline

    DJ411

    same here..
     
  9. Offline

    l5p4ngl312

    Same
     
  10. Offline

    bLazem

    also same here *only thread im watching*
     
  11. Offline

    Gnyf

    same
     
  12. Offline

    earthiverse

    donated like $5 canadian.
    make me happy!
     
  13. Offline

    l5p4ngl312

    ugh. i feel like the more I refresh the page the shorter it will be until the update.
     
  14. Offline

    DJ411

    OMFG i just jizzed! v0.2 is out. A Green Build of CraftBukkit. I'm going to bed a Happy Man. Got to set the alarm for this.
     
  15. Offline

    Hypo2010

    The permission nodes aren't right yet or? cuz I cant use the commands ingame without beeing admin. And as admin i dont need to add some nodes i have all^^
     
  16. Offline

    nidefawl

    works for me.
    I added an example configuration
     
  17. Offline

    Kayonesoft

    SEVERE: Could not pass event PLAYER_COMMAND to Stats
    Caused by: java.lang.ClassNotFoundException: com.bukkit.nidefawl.myGeneral.Messaging

    Also having a terrible time with achievements displaying. They seem to either not show up or take forever to show up.
     
  18. Offline

    nidefawl

    Fixed that one, please test 0.2b!
     
  19. Offline

    Ray

    Works for me, but with Permissons 1.9 nobody can use /stats.
    In Permissions 1.9 i´ve added this line:

    Code:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: false
            inheritance:
            permissions:
                - 'general.spawn'
                - '/stats'
                - '/ach'
    
    as descriped above.

    Only admins with permissions '*' can use /stats and /ach.
     
  20. Offline

    XhiZor

    achievements still doesn't work [​IMG]
     
  21. Offline

    lonelydime

    2011-01-27 09:45:13 [INFO] [Achievements]: Found required plugin: Stats
    2011-01-27 09:45:13 [SEVERE] [Achievements]:GroupUsers plugin not found, aborting load of Achievements

    I thought the new version got rid of the need for this outdated plugin?
     
  22. Offline

    jimmydorry

    Cheers for the awesome plugins. Getting exact same PLAYER_COMMAND error. Used the exact downloads from the OP. It was in a zip 0.2b... but the jar was called 0.2.

    Patience is required, but I will survive the wait.

    Can't wait till I can see this plugin in action.
     
  23. Offline

    nidefawl

    you definitely running an outdated version of Achievements, as the latest versions source code does not even contain the string 'GroupUsers'
    it gets the permissions-plugin from the Stats-instance

    I think i figured out whats the problem with /stats - default permissions.

    I'll update it in a hour or so!
     
  24. Offline

    Kayonesoft

    Okay the commands appear to be working now.
    However there are two things of note.
    1, it seems like achievements only trigger when the information has been saved to stats (makes sense), but stats are only saved and updated during a world save. Currently I have my world save set to every 10 minutes, which is an awful lot of time for someone to be awarded an achievement. Is there any chance of making this realtime tracking without causing a ton of issues?
    2, I seem to be running into an issue with awarding items. I've tried
    item woodensword 1
    item WoodenSword 1
    item 268 1
    and they all give me an error.
    The first was from your default txt. The second was how it was showing in my items.db. The last was the item ID associated with that item in the items.db. Where are the item names being pulled from?
     
  25. Offline

    lonelydime

    Sorry about that, must have uploaded the wrong one to the server.

    Got an error starting it up though:
    Code:
    Jan 27, 2011 10:27:17 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_JOIN to Achievements
    java.lang.NoSuchMethodError: com.bukkit.nidefawl.Stats.Stats.Perms()Lcom/bukkit/nidefawl/Stats/Permissions/PermissionsResolver;
            at com.bukkit.nidefawl.Achievements.Achievements$AchievementsListener.onPlayerJoin(Achievements.java:395)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:131)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:201)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:75)
            at net.minecraft.server.NetLoginHandler.b(SourceFile:121)
            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)
    
    Newest version of craftbukkit at time of writing
     
  26. Offline

    Ray

    Sometimes this one happens:

    Code:
    Exception in thread "Timer-1" java.lang.NullPointerException
            at com.bukkit.nidefawl.Achievements.Conditionals.meets(Conditionals.java:59)
            at com.bukkit.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:196)
            at com.bukkit.nidefawl.Achievements.Achievements.access$1(Achievements.java:184)
            at com.bukkit.nidefawl.Achievements.Achievements$CheckerTask.run(Achievements.java:144)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)
    
     
  27. Offline

    Coneboy

    @nidefawl Hey I love this plugin! But would there be a way to add BigBrother support? Because I already have a huge BigBrother MySQL database and it would be really awesome if your plugin could read this data!
     
  28. Offline

    Kayonesoft

    Additionally, is there a full list of possible trigger variables somewhere? Like on item pickup or block destroy or damage, etc.

    Suggestion: Triggers based on multiple variables, either if all are met or any are met.
    Example: 1:Monster Hunter For Hire:1:itempickup:(feather:50;bone:50;sulfur:50):Obtained 50 feathers, bones and sulfur:item diamondsword 1

    Suggestion: Multiple rewards.
    Example: 1:Death is its Own Reward:1:deaths:total:1:Died once.:item (woodensword 1; leatherhelm 1; leatherchest 1; leatherpants 1; leatherboots 1)
    --- merged: Jan 27, 2011 4:13 PM ---
    Suggestion: Multiple lines for achievement messages, so we don't see the white wrap.
    Example:
    Achievement Unlocked!
    player has been awarded
    [Rather Lengthy Achievement Name and Stuff]
     
  29. Offline

    poopiepants

    Hello,

    I am getting this looped and the server cannot start.
    I downloaded the latest build of stats/achievements and permissions.
    Is groups still necessary?

    Thank you for the great program!

    SEVERE: Could not pass event VEHICLE_MOVE to Stats
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.entity.CraftVehicle.getPassenger(CraftVehicle.
    java:19)
    at com.bukkit.nidefawl.Stats.StatsVehicleListener.onVehicleMove(StatsVeh
    icleListener.java:93)
    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:262)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:199)
    at net.minecraft.server.EntityMinecart.b_(EntityMinecart.java:510)
    at net.minecraft.server.World.a(SourceFile:1116)
    at net.minecraft.server.WorldServer.a(WorldServer.java:41)
    at net.minecraft.server.World.f(SourceFile:1092)
    at net.minecraft.server.World.c(SourceFile:1071)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:260)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-27 11:33:04 [WARNING] Can't keep up! Did the system time change, or is t
    he server overloaded?
    Jan 27, 2011 11:33:04 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event VEHICLE_MOVE to Stats
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.entity.CraftVehicle.getPassenger(CraftVehicle.
    java:19)
    at com.bukkit.nidefawl.Stats.StatsVehicleListener.onVehicleMove(StatsVeh
    icleListener.java:93)
    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:262)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:199)
    at net.minecraft.server.EntityMinecart.b_(EntityMinecart.java:510)
    at net.minecraft.server.World.a(SourceFile:1116)
    at net.minecraft.server.WorldServer.a(WorldServer.java:41)
    at net.minecraft.server.World.f(SourceFile:1092)
    at net.minecraft.server.World.c(SourceFile:1071)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:260)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  30. Offline

    nidefawl

    to 1:
    all loaded playerstats are saved every 30 seconds by default. the value is defined in stats/stats.properties (stats-save-delay)
    outstanding ach's are checked every 300 seconds by default. the value is defined in achievements/achievements.properties (achievements-delay)

    to 2:
    what about woodsword ?!
    all item names get resolved with items.txt
    if you delete it will be recreated at startup (including all the new items I added in v0.2)


    Stats.jar outdated?
    I will move download links/documentation and all stuff to my wiki from now on!

    it would be cool to parse data gathered from BB before you had Stats into the stats-table. Another thing i thought about is parsing the server.log to get the played-times
    But there are just too much other issues/features that are way more important right now.

    full list of possible trigges will be added to documentation.
    multiple triggers are cool, but if i add them there should be operators and brackets to rly get something out of it.
    btw: there are \[code\] tags, plz use them!

    working on another update...
     
  31. Offline

    lonelydime

    Holy god I'm one of those people. Sorry to waste your time.
     

Share This Page