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

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

  1. Offline


    Stats and Achievements

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

    • 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>
    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:
    Permissions for v0.9+:
    Show Spoiler

    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.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:
    Please donate --> [​IMG]

    Please read the Wiki before posting:

  2. Offline


    Same here Joe_Young, it's due to this change.

    We have to wait nidefawl to correct this.
  3. Offline


    sorry no
    --- merged: Feb 27, 2011 6:50 PM ---
    i will get a git hub repository up, you can fork/clone it and compile it yourself :)
  4. Offline


    thats ok some one said i can change the /stats command in mcmmo so that will stop the config problem

    ah cool, no problem ...javas just like basic yeah ?
    10 print "hello welcome to stats clone"
    20 let stats=stats + complicated stuff
    30 if stats = change then goto 50
    40 goto 20
    50 let change = complicated stuff
    60 if groupmanager = 99c goto 20
    70 else end
    would that do it for adding groupmanager support? :)

    on a serous note sorry if it sounded like i was trying to rush support for groupmanager it will take me a very long time to get an achievements list ready so im in no hurry
  5. Offline


    @nidefawl Are you moving forward with new verions of iconomy?

    Its is very different and I havent updated to use it yet... but would like to know your plans for it.

    --- merged: Feb 27, 2011 7:49 PM ---
    That would be a nice gesture.

  6. How do you configure the MySQL settings (database name, etc.)?
  7. Offline


  8. Offline


    ok its only the start of a first draft a mere 58 achivements
    im dyslexic so there may be spelling mistakes
    and as i cant use the plugin yet there may be errors

    theres not many oncreate yet as im not sure if oncreate refers to making the block or placing the block?
    ill do some more when i get some time and re-up it, in the meantime if anyone wants to add to it maybe we can all collaberate and make a very big fun (and family friendly) achievement list, i know we all have different awards but the reawrds are an easy thing to edit, its coming up with achievement names and descriptions thats hard lol

    Attached Files:

  9. Ah okay, thanks. The plugins didn't generate the mysql.properties, even after restarting the server with it set to use mysql.

    Also, @nidefawl the Achievements plugin seems to be erroring out on startup (Causing most of my plugins to stop working.). Here's the error I get (I have the latest CraftIRC. (So I assume it needs to be recompiled against the latest CraftIRC?)) and it errors out even if I set the CraftIRC option to false.

  10. Offline


    So when will you patch up the PLAYER_COMMAND error? Hopefully soon, I love this plugin.

    You've got good ideas, but a great deal of those achievements are going to need some real tweaking.
  11. Offline


    Thank you, as i say its a start of a first draft :) feel free to edit it and re-upload it, in fact i encourage it! as i say the more we all edit and add the better it will be :) (no offense will be taken to any changes, providing there kept family friendly)
  12. Offline


    On server shutdown, I receive the following error, and the server terminates without shutting down, destroying any unsaved player or map data.

    Bukkit 458, Stats 0.53, Achievements 0.54.

    2011-02-27 15:48:31 [SEVERE] java.lang.NullPointerException
    2011-02-27 15:48:31 [SEVERE]    at com.nidefawl.Stats.Stats.get(Stats.java:790)
    2011-02-27 15:48:31 [SEVERE]    at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:283)
    2011-02-27 15:48:31 [SEVERE]    at com.nidefawl.Achievements.Achievements.onDisable(Achievements.java:214)
    2011-02-27 15:48:31 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:142)
    2011-02-27 15:48:31 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:441)
    2011-02-27 15:48:31 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
    2011-02-27 15:48:31 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:193)
    2011-02-27 15:48:31 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:71)
    2011-02-27 15:48:31 [SEVERE]    at net.minecraft.server.MinecraftServer.g(MinecraftServer.java:208)
    2011-02-27 15:48:31 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-02-27 15:48:31 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
  13. Offline


    I'm getting this error with Stats 0.53, Achievements 0.54 and Craftbukkit 440:
    (read from bottom to top)
    28.02 01:50:09 [Server] SEVERE at java.lang.Thread.run(Thread.java:636)
    28.02 01:50:09 [Server] SEVERE at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    28.02 01:50:09 [Server] SEVERE at com.nidefawl.Achievements.Achievements$CheckerTask.run(Achievements.java:208)
    28.02 01:50:09 [Server] SEVERE at com.nidefawl.Achievements.Achievements.access$0(Achievements.java:268)
    28.02 01:50:09 [Server] SEVERE at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:283)
    28.02 01:50:09 [Server] SEVERE at com.nidefawl.Stats.Stats.get(Stats.java:790)
    28.02 01:50:09 [Server] SEVERE java.lang.NullPointerException
    It seems to happen when players disconnect, but I'm not 100% sure about that.
  14. Offline


    This achievement is given to all connected players if one player achieves it. Anyone have any idea why?
    Others work fine.

    1:The forest loves you!:1:blockcreate:sapling:1:Planted a tree.:item apple 1
  15. Offline


    Your server seems to be down
  16. Offline


    will fix loading/unloading order next version

    If there are any errors at startup (like exceptions with PLAYER_COMMAND) stats will not load.

    works fine for me (on current dev-state)

    You've got me there
    I broke DNS for 10-20 minutes
  17. And what about my error?

    2011-02-27 22:32:32 [SEVERE] org/bukkit/animosity/craftirc/CraftIRC (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/animosity/craftirc/CraftIRC
    at com.nidefawl.Achievements.Achievements.CheckCraftIRC(Achievements.java:258)
    at com.nidefawl.Achievements.Achievements.loadConfig(Achievements.java:101)
    at com.nidefawl.Achievements.Achievements.onEnable(Achievements.java:160)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:424)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:80)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:198)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:185)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:238)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.animosity.craftirc.CraftIRC
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    ... 13 more
    Running the latest Stats + Achievements, CraftBukkit #450 and CraftIRC 1.70d
  18. Offline


    CraftIRC changed the namespace
    Use CraftIRC 1.70b, disable CraftIRC support in config, or wait for the next update
  19. Thanks :).
  20. Offline


    ehhhh nidefawl is there any way to get my stats MySQL databse to the SQL lite database? I have exported the databse to a .txt file now. It looks like this:


    I also can export it in other ways so..... can you tell me plz?
  21. Offline


    export from mysql with phpmyadmin, save to .sql file
    switch stats to sqlite, let it create the sqlite database file (stats.db)
    stop server, open stats.db with some sql-lite editor (I'm using SQLite Manager, firefox extension)
    Import the .sql file
    Could be it needs some syntax fixing...
    --- merged: Feb 28, 2011 6:32 PM ---
    btw: why are you switching to SQLite? (SQLite-database broke for me several times with server crashes)
  22. Offline


    Yea i wanna switch becuase i get enormius lagg with the MySQL databases i beter use a other database
    And i only can coose between MySQL and SQLlite?
  23. Offline


    radarwolf: I suggest spellchecking your posts. That was awful.
  24. Offline


    Well maybe its becuase my main lang is dutch. Sorry for my bad english!
  25. Offline


    You can try switching, i dont think there is a big difference. You think the Stats plugin causes the lag?
  26. Offline


    Does someone have an updated items database?
    I don't want to add my own, then find out someone's using a different spelling in a later release.
  27. Offline


    sqlite, groupmanager permissions (latest) CB 440:

    2011-03-01 14:05:23 [SEVERE] [Stats-0.53] SQL exception: NYI
    2011-03-01 14:05:23 [SEVERE] java.sql.SQLException: NYI
    2011-03-01 14:05:23 [SEVERE] at org.sqlite.Conn.prepareStatement(Conn.java:217)
    2011-03-01 14:05:23 [SEVERE] at com.nidefawl.Stats.datasource.PlayerStatSQL.save(PlayerStatSQL.java:34)
    2011-03-01 14:05:23 [SEVERE] at com.nidefawl.Stats.Stats.saveAll(Stats.java:840)
    2011-03-01 14:05:23 [SEVERE] at com.nidefawl.Stats.Stats.onDisable(Stats.java:582)
    2011-03-01 14:05:23 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:142)
    2011-03-01 14:05:23 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:441)
    2011-03-01 14:05:23 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
    2011-03-01 14:05:23 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:193)
    2011-03-01 14:05:23 [SEVERE] at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:71)
    2011-03-01 14:05:23 [SEVERE] at net.minecraft.server.MinecraftServer.g(MinecraftServer.java:208)
    2011-03-01 14:05:23 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-03-01 14:05:23 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
  28. Offline


    Well yea becuase it needs to register every move of the player every change they do need to be registrated. So i just go try this else i am gonna try something else.
  29. Offline


    First of all: Great plugin man. My users love this plugin.

    However because of the shutdown crashes which cause any unsaved player data and world data to be lost, I've had to disable this plugin and my users are not happy:)

    Hope to see an updated version soon !

    Thank you for your hard work.
  30. Offline


    could u uptade the onCommand event for CB454+ ?
  31. Offline


    so has this been updated? Or is this working with iconomy 4.1 yet? It is just spitting errors at me left and right for 3.0

Share This Page