[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

    HanzoSanada

    REQUEST:

    Is there any chance you could add an alias to the /stats command? (or a way to configure it)
    I use mcMMO also and the /stats conflicts with each other.

    Tyvm if you can :)
     
  3. Offline

    Tunaaja

    Am i doing something wrong or is this bug?
    13:26:33 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-g6c6c30a-b556jnks (MC: 1.3)

    13:26:35 [SEVERE] Plugin attempted to register PLAYER_JOIN while not enabled loading Stats v0.7 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register PLAYER_JOIN while not enabled
    at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:273)
    at com.nidefawl.Achievements.Achievements.initialize(Achievements.java:237)
    at com.nidefawl.Achievements.Achievements.Enable(Achievements.java:198)
    at com.nidefawl.Stats.Stats.onEnable(Stats.java:583)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  4. Offline

    Joe_Young

    you can change the stats command for mcMMO. it's in the config
     
  5. Offline

    H4Mm3r

    Abandoned plugin ? :(
     
  6. Offline

    deltahat

    There's always MCStats :)
     
  7. Offline

    H4Mm3r

    Yes, but what I love here is Achievements xD
     
  8. Offline

    dslip

    ^^^ This.

    The achievements are great.
     
  9. Offline

    DanDaMan

    I hope this plugin keep's going. It is the favorite addon on my server for everyone. The Achievements are FANTASTIC! We dig being able to add in our own as well!!!

    Thanks Dude! Keep up the great work....
     
  10. Offline

    turtlelink2

    can you add multiple conditions?
     
  11. Offline

    dragonhib

    Hi ! Why this thread is set as [INACTIVE] ?? Did you plan to make your plugin compatible with the latest craftbukkit recommended build (556) ?
     
  12. Offline

    nidefawl

    Just want to say i never set this plugin inactive and I'm still working on it

    You can expect an uptate the next days
     
  13. Offline

    dragonhib

    Ok cool !! Thanks still working on it cause your plugins are awesome !!
     
  14. Offline

    Sawn

    Great !

    Will this be a compatibility update only or do you plan on adding some neat features ? (like achievements storage in MySQL/SQLite, etc).

    And a little suggestion for the Stats mod, I think MySQL table structure can be much more optimized, especially if using both Stats and Achievements (and adding Achievements storage to MySQL), by adding a table.

    For now, I have :

    playerachievements with structure : player (varchar32), achievement (varchar128), count(int11).
    stats : player(varchar32), category(varchar32), stat(varchar32), value(int11).

    I think it may be much more efficient to implement this like :

    'achievements_data' table :
    id : unsigned tinyint, maybe smallint, in autoincrement
    achievement : varchar is good, the 255 limit seems sufficient.
    reward (contains Minecraft object ID) : smallint because tinyint will be too small.
    points (I'd love to have the ability to attribute points per achievement !) : unsigned tinyint.

    'achievements' table :
    id : smallint in autoincrement
    playerid : unsigned smallint
    ach_id : unsigned tinyint
    date : timestamp

    'stats_data' table :
    id : unsigned smallint autoincrement
    category : varchar(16)

    'objects' table :
    id : smallint containing MC object ID
    desc : varchar(32)

    'stats' table :
    playerid : unsigned tinyint
    categoryid : unsigned tinyint
    objectid : smallint
    value : int(11) seems sufficient

    'players' table :
    playerid : unsigned tinyint
    name : varchar(16)
    lastlogin : timestamp
    lastlogout : timestamp
    playedfor : int(11)
    armswings : int(11)
    chatletters [...]
    etc

    Data actually flagged as 'stats'

    Just a suggestion :)

    By the way, thanks for those great mods. :D

    EDIT: Huhu, forgot the 'players' table, corrected.
     
  15. Offline

    nidefawl

    achievements will be added to sql!
    I dont think its worth it to remove the stat and category names from the sats table
     
  16. Offline

    cyberbobjr

  17. Offline

    Sawn

    Yeah, I was discussing with some dev friends on this subject and they also said that the performance gain will be too small to notice... So forget about what I've said :)

    Yay for the SQL support of achievements !
     
  18. Offline

    ReRRemi

    Hi! I have a problem...

    When I write "/stats", I have my stats. But when my friend doing "/stats", he have this message :
    Code:
    /stats /stats [category|statname|convert|list|help] /stats [player] [category|statname]

    I use CB 512 and GM 1.0 alpha5 and stats v0.7.

    Someone has a solution? Thank you in advance!
     
  19. Offline

    Nideco

    Good to hear you're still going at it, nidefawl!
    I was wondering, though, how to add money to someone's account using Stats+Ach & Essentials?
    Since /money isn't an actual Essentials command, and all Essentials /eco commands need a player name :(
     
  20. Offline

    lolox22

    Plugin attempted to register PLAYER_JOIN while not enabled loading Stats v0.7 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register PLAYER_JOIN while not enabled
    at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:273)
    at com.nidefawl.Achievements.Achievements.initialize(Achievements.java:237)
    at com.nidefawl.Achievements.Achievements.Enable(Achievements.java:198)
    at com.nidefawl.Stats.Stats.onEnable(Stats.java:583)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  21. Offline

    nidefawl

    does your friend have the '/stats' permission?

    could you please post the whole startup log?
     
  22. Offline

    ReRRemi

    I didn't think that there are permissions for stats! But it is useful :). I'm a real noob to not be found! Thank you again.
     
  23. Offline

    n4Ghost

    craftbukkit 556:

    Code:
    [SEVERE] Plugin attempted to register PLAYER_JOIN while not enabled loading Stats v0.7 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register PLAYER_JOIN while not enabled
            at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:273)
            at com.nidefawl.Achievements.Achievements.initialize(Achievements.java:237)
            at com.nidefawl.Achievements.Achievements.Enable(Achievements.java:198)
            at com.nidefawl.Stats.Stats.onEnable(Stats.java:583)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
     
  24. Offline

    nidefawl

    could you please post the whole startup log?
     
  25. Offline

    MintyAnt

    Hey Nidefawl, try this quick:

    Add [bukkit no] to the end of the title
    [INFO] Stats [v0.7] and Achievements [v0.7][552]

    Then somewhere after the "download" section at a tiny "features" section

    So something like:


    Stats Features:
    -Logs many actions that players do!
    -Some actions: # Block Destoys(for each block), Item Uses, Damage Dealt, Deaths, Kills, etc...
    -Allows users to see their own stats
    -Keeps all stats within a file for each user

    Achievements Features:
    -Give users achievments 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 200 gold as a prize
    -Customizable achievments!

    then click the report button and see if they will allow it.
    I think they just want the craft bukkit build number in the name (and forum post)
    http://forums.bukkit.org/threads/info-stats-v0-7-and-achievements-v0-7.1328/

    Also, I personally would like it if you kept your changelog going. Its useful for admins like me who check in once in a blue moon :p
     
  26. Offline

    scar413

    just give the achievement the ":money #amount" command, and it will be added to the players account, no big deal
     
  27. Offline

    nidefawl

    Whats the point?
    Check the wiki for the changelogs!!!!

    oh its still in submissions/inactive

    well, I try to keep things updated and I think ppl know what this plugin does.
    If someone would write a nice description I will add it to the opening post.

    Sorry, but I dont like to put all infos in the OP, mainly because the editor in this forum is crap

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

    unachemaxwell

    Okay, I am starting to convert all my stuff from SQLite to mySQL (and my achievements flatfile to mySQL which I believe I can handle). is there an easy way to convert my stats DB file to my mySQL with as little loss of information as possible? I love your work and have been using it since version .4! Just noticed the update today and thought this would be a good time to try to convert the DB over. Any help would be welcomed and appreciated.
     
  29. Offline

    lenocinor

    Glad to see you're still working on this, nidefawl. Getting lots of use out of this on my server, it's great. :) One question: are there plans to be able to see stats on players who aren't logged in currently?
     
  30. Offline

    Nideco

    That's exactly my point. That does not work.
    Is it because I've updated my Essentails plugin? Essentials has changed again, putting the (wat used to be) seperate EcoPlugin back into the main Essentials.jar plugin. Is that the reason?
     
  31. Offline

    nidefawl

    seems like thats the reason... i may fix it next update
     

Share This Page