[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

    xtream1101

    I keep getting this error everytime a player disconnects. Does anyone know how to fix this? I have tried to use build 252 and 318.

    Code:
    2011-02-12 12:35:43 [SEVERE] [Stats-v0.3c] attempting to unload an player that's
     not loaded: xtream1101
    Edit: It works just fine now, I had to give the permission /stats to the players
     
  3. Offline

    joey

    Is this done? is this plugin abandon? why is pickup still not working.
     
  4. Offline

    earthiverse

    pickup hasn't worked for me since hmod.
     
  5. Offline

    Kayonesoft

    It looks like they just added pickup and drop hooks in one of the last few Bukkit updates...
     
  6. Offline

    Dodecha

    We were having crashes on our server, for multiple reasons, one was the memory leak in #256+ which was fixed in #304

    I was monitoring our server and things seemed fine for an hour or so with 20 players, but i saw a slow steady increase of memory usage, and i unloaded the stats plugin:
    [​IMG]
    The memoryusage dropped from 1,3gb to 300mb the second i unloaded it.
     
  7. Offline

    Nathan C

    Yep, I finally solved it too. It would run great for a couple of hours, but then start to lag out. Also I seemed to have unxeplained crasehs and memory leaks.

    Removed these two plugins...............and everything is fine. No lag, or memory leaks.
     
  8. Offline

    Tasoli

    When running the "Essentials" plug-in, the Achievements portion of this package crashes the server. It gives no error message.
     
  9. Offline

    scar413

    the memory issue seems to be a serious problem. any info if it gets fixed?
     
  10. Offline

    nidefawl

    Well i'm aware of the high mem/cpu usage these plugins have.
    Did a lot of changes to it lately,
    But I'll have to test it in combination with other plugins as well..
    --- merged: Feb 15, 2011 1:13 AM ---
    thats how all plugins do it
    from BigBrothers Manifest.mf:
    Code:
    Manifest-Version: 1.0
    Class-Path: ../lib/sqlite.jar ../lib/mysql.jar Permissions.jar
    --- merged: Feb 15, 2011 1:15 AM ---
    I fixed that. Now you don't get the achievement if your inventory does not have enough free space
     
  11. Offline

    uncovery

    That means that you get it ONCE it is available?
     
  12. Offline

    nidefawl

    exactly!
     
  13. Offline

    prom3th3an

    When you use /listach to view the list of achievements, the output header says "/achlist <page:#id>" which is an invalid command, it should read "/listach <page:#id>"

    This confusses a number of people on my server.
     
  14. Offline

    nidefawl

    yep, someone else reported it before

    i had some testing, and fixed it (i should have closed the mysql connections after load, seems like it created a new connection for every loaded PlayerStat)

    next update will drop the flatfile support for Stats.
    If you are using flatfiles right now they will be converted to a SQLite database.
     
  15. Offline

    scar413

    any ETA of the update release? its a pretty annoying bug
     
  16. Offline

    nidefawl

    0.5 is out!
     
  17. Offline

    Vaupell

    Link old version please ;)

    new after new version im getting log and console spam
    Code:
     2011-02-16 13:06:03 [SEVERE] [Stats-0.5] SQL exception: NYI
    java.sql.SQLException: NYI
            at org.sqlite.Conn.prepareStatement(Conn.java:217)
            at com.nidefawl.Stats.datasource.PlayerStatSQL.save(PlayerStatSQL.ja
    4)
            at com.nidefawl.Stats.Stats.unload(Stats.java:833)
            at com.nidefawl.Stats.StatsPlayerListener.onPlayerQuit(StatsPlayerLi
    er.java:23)
            at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoade
    va:129)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener
    a:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManag
    ava:214)
            at net.minecraft.server.ServerConfigurationManager.c(ServerConfigura
    Manager.java:105)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:551
            at net.minecraft.server.NetworkManager.a(SourceFile:236)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
     
  18. Offline

    nidefawl

    0.3c is linked on the wiki. (i dont recommend using that version)
    What other plugins do you run? What files are in your lib folder? What OS/Java version?
     
  19. Offline

    Vaupell

    Os : (local run) Win7 64bit, 12gb ram, ssd drives - 5gb dedicated to craftbukkit

    Plugins = yedit, worldguard, worldedit, voxelsniper, stats, pumpkindiver, permissions, minecart mania, lwc, levelcraft, jail, imonster, iconomy, farmmaster, herochat, heroicdeath, extendday, essentials + addons, borderguardlite, achivements

    Lib :
    mysql.jar
    sqllite.jar
    native/windows/x86/sqlitejdbc.dll

    Java : Java Version 1.6.0_23 from Sun Microsystems Inc.

    Bukkit : Craftbukkit b328

    well i dont appear to have ingame issues, and was using the old until today just fine ;)
    so im just gonna rollback to old version ;D no worries.
     
  20. Offline

    nidefawl

    fixed it

    nope sry
     
  21. Offline

    x3no

    For me it is not converting the flat files (although on the server console it says it has [converted 10 stats files to sqlite]), or the conversion makes an error somehow. If i /stats ingame all is empty again... :(

    Win2k3, newest Java x64, CB Build 326
    Plugins: MyHome, MyWarp, General, WorldEdit, HeroicDeath, MinecartManiaCore, Permissions, Autorepair, stackable, CraftIRC, Whitelist, stats
    lib: mysql.jar, sqlite.jar, win-x86.lib, native folder (sqlitejdbc.dll)

    <edit>
    Testing with 0.51 now...

    I deleted the db and settings before starting with the new version, and i got this:
    Code:
    2011-02-16 15:27:03 [INFO] Binary update required
    2011-02-16 15:27:03 [INFO] Need to download 3 file(s)
    2011-02-16 15:27:03 [INFO]  - Downloading file : http://dev.craftland.org/stats/lib/sqlite.jar
    2011-02-16 15:27:04 [INFO]   + Download complete
    2011-02-16 15:27:04 [INFO]  - Downloading file : http://dev.craftland.org/stats/lib/native/Windows/a
    md64/sqlitejdbc.dll
    java.io.FileNotFoundException: lib\native\Windows\amd64\sqlitejdbc.dll (The process cannot access th
    e file because it is being used by another process)
            at java.io.FileOutputStream.open(Native Method)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at com.nidefawl.Stats.util.Updater.update(Updater.java:394)
            at com.nidefawl.Stats.Stats.<init>(Stats.java:86)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:77)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-02-16 15:27:04 [INFO] [Stats-0.51] com.nidefawl.Stats.Stats created table 'stats'.
    2011-02-16 15:27:04 [INFO] [Stats-0.51] Converted 10 stat files to SQLite
    The stats are still empty ingame. :(

    </edit>
     
  22. Offline

    Vaupell

    Works,, cheers
     
  23. Offline

    nidefawl

    did not test that too much sry.
    can you send me 2 or 3 flat files (maybe some big sized ones)?
     
  24. Offline

    zankioh

    15:25:45 [INFO] [Achievements-0.5] Achievements 0.5 Plugin Disabled
    2011-02-16 15:25:45 [SEVERE] [Achievements-0.5] Bad command 'item glowstone 10' (invalid item) correct is: item <itemname> <amount>
    2011-02-16 15:25:45 [INFO] [Achievements-0.5] Disabling achievement 'Mehr Sicht!'...

    Also all stats are empty for me as well. CB #325
     
  25. Offline

    x3no

    I'm only using stats since 6th of feb, i have 1-3kb flat files.
    --- merged: Feb 16, 2011 2:59 PM ---
    Here you go.
     

    Attached Files:

  26. Offline

    nidefawl

    just add glowstone into your items.txt or replace it by lightstone

    just copy 1 or 2 to http://pastebin.com/
    would make it a bit easier for me
    --- merged: Feb 16, 2011 3:00 PM ---
    ah, k thx!
    --- merged: Feb 16, 2011 3:36 PM ---
    Ok, have a try on 0.52!
     
  27. Offline

    zankioh

    Great, quick fix. All the stats were taken over now - and thanks for the lightstone hint. Working perfectly right now :)
     
  28. Offline

    x3no

    Worked for me too, thanks! [diamond]

    How do i view the detailed stats which i could look up in the txt file before?
     
  29. Offline

    nidefawl

    you can use a SQLite browser and opend the db file (Copy it over before!)
    Or you can use ingame commands. type /stats cats

    There is more on the wiki
     
  30. Offline

    Funkfoose

    When ever I try to use this plugin it conflicts with the WarpGate plugin. Server still runs fine and the stats+achievements work fine, it just stop the warp gate portal list from loading.

    Is this due to the warp commands with the stats plugin? And is there a way I can disable that so I can use continue to use the warp gate plugin on my server?
     
  31. Offline

    uyuyuy99

    The stats plugin works fine, but whenever I add the Achievements plugin, it breaks essentials. Can anyone help me?
     

Share This Page