[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

    Umbra

    Just rebooted my server now and I'm also getting this error. I suspect stats/achievements though.
     
  3. Offline

    NeatMonster

    The same :
    Code:
    19:22:53 [SEVERE] tried to access class com.nijiko.coelho.iConomy.iConomy$Listener from class com.nijiko.coelho.iConomy.iConomy loading iConomy v4.65 (Is it up to date?)
    java.lang.IllegalAccessError: tried to access class com.nijiko.coelho.iConomy.iConomy$Listener from class com.nijiko.coelho.iConomy.iConomy
            at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:174)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  4. Offline

    Sleaker

    latest version of Achievements creates this line:

    Code:
    achievements-definintions-sql = false   #set to true to use definitions from sql-table
    I remade my own named 'definitions-sql' hope that's what it should be, cause you're config has mis-spelled properties atm.

    Also achievements just speeews errors out.
     
  5. Offline

    Luckz

    <nidefawl> i cant help sry, i'm about to quit stats/achievements development

    So, uh, somebody go fix it. :p

    <nidefawl> when i add iconomy/groupmanager/craftirc to the class-path it explodes because of some of their constructors are not public...
    <nidefawl> for my own server i compile all plugins myself, and it works with the fixed constructors...
     
  6. Offline

    PandaVidya

    :'(
     
  7. Offline

    crazydog

    Luckily it's an easy fix, and we don't need the source.

    Open up Achievements.jar (it's a zip archive), go into the META-INF folder, open up MANIFEST.MF

    Remove "iConomy.jar" from the Class-Path

    So Class-Path should read:
    Class-Path: Stats/lib/mysql.jar Stats/lib/sqlite.jar Stats.jar GroupManager.jar Essentials.jar

    It'll fix the exception and other iConomy Plugins (like DynamicMarket), but it may break any monetary rewards. Worthy sacrifice, in my opinion.
     
  8. Offline

    d4rky

    hi all...

    can someone help me

    i get the following error if im using stats 0.972 an permissions 2.5.5

    [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
    [SEVERE] at com.nidefawl.Stats.Permissions.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:74)
    [SEVERE] at com.nidefawl.Achievements.AchConditionals.meets(AchConditionals.java:51)
    [SEVERE] at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:289)
    [SEVERE] at com.nidefawl.Achievements.AchievementsCheckerTask.run(AchievementsCheckerTask.java:11)
    [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    [SEVERE] Unexpected exception

    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
    at com.nidefawl.Stats.Permissions.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:74)
    at com.nidefawl.Achievements.AchConditionals.meets(AchConditionals.java:51)
    at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:289)
    at com.nidefawl.Achievements.AchievementsCheckerTask.run(AchievementsCheckerTask.java:11)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    got bukkit 617

    plugins all up to date: ichat, spawnx, teleportx, homex, otherx, heroicdeath, stats and achieves, netherportal, dynmap, permissions (theyeti)
    i think thats all... running on debian squeeze (uptodate)

    my permissions heaven.yml, earth.yml, hell.yml

    heaven:
    plugin:
    permissions:
    system: default
    copies:

    groups:
    Default:
    default: true
    info:
    prefix: '&f[&8new&f]&7'
    suffix: '&8'
    build: false
    inheritance:
    permissions:
    - 'achievements.check'
    - 'stats.log'
    User:
    default: false
    info:
    prefix: '&f[&busr&f]&a'
    suffix: '&b'
    build: true
    inheritance:
    - Default
    permissions:
    - 'achievements.view.own'
    - 'stats.view.own'
    - 'stats.view.playtime'
    - 'OtherX.location'
    - 'OtherX.msg'
    - 'OtherX.who'
    - 'OtherX.item'
    - 'OtherX.search'
    - 'HomeX.sethome'
    - 'HomeX.home'
    - 'TeleportX.tp'
    - 'TeleportX.tphere'
    Moderator:
    default: false
    info:
    prefix: '&f[&emod&f]&a'
    suffix: '&e'
    build: true
    inheritance:
    - User
    permissions:
    - 'achievements.view.list'
    - 'achievements.admin.check'
    - 'achievements.admin.reload'
    - 'stats.view.others'
    - 'stats.admin'
    - 'permissions.reload'
    - 'OtherX.time'
    - 'OtherX.give'
    - 'OtherX.clearinventory'
    - 'OtherX.kill'
    - 'OtherX.heal'
    - 'OtherX.kick'
    - 'SpawnX.setspawn'
    - 'SpawnX.spawn'
    - 'TeleportX.tpplayer'
    - 'NetherPortal.teleport'
    - 'NetherPortal.location'
    - 'NetherPortal.fullsearch'
    - 'NetherPortal.setspawn'
    - 'NetherPortal.teleport.*'
    - 'NetherPortal.portal.*'
    - 'NetherPortal.world.*'
    Admin:
    default: false
    info:
    prefix: '&f[&cadm&f]&a'
    suffix: '&c'
    build: true
    inheritance:
    permissions:
    - '*'

    users:
    blub:
    group: Moderator
    permissions:
    blib:
    group: Admin
    permissions:
    blab:
    group: Moderator
    permissions:
    bleb:
    group: User
    permission:
    --------------------------
    hell and earth:
    plugin:
    permissions:
    system: default
    copies: heaven

    thanks

    got the same problem

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

    ScavangeR

    Hi all

    I got the following error since i updated my server to CB617 and Achievements to 0.97

    Code:
    2011-04-05 17:10:43 [SEVERE] Unexpected exception
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
        at com.nidefawl.Stats.Permissions.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:74)
        at com.nidefawl.Achievements.AchConditionals.meets(AchConditionals.java:51)
        at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:289)
        at com.nidefawl.Achievements.AchievementsCheckerTask.run(AchievementsCheckerTask.java:11)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Then the server stop responding...

    Someone know how to fix it ?

    Actually my server run smooth when i take out the achievement.jar
     
  10. Offline

    GiantCreeper

    Works 100% for me, However it does show an error relating to WorldGuard.
    It still works fine tho, So im just ignoring it.
    Thanks for this plugin :)
     
  11. Offline

    NeatMonster

    Has nidefawl left us ?
     
  12. Offline

    Birdie

    Same thing happens to me..
     
  13. Offline

    craftopia.net

    Running 617, Essentials, Groupmanager. Installed the plugins and they built the database, and requested a restart. As soon as I restart my server i get this, after it seems to successfully load ALL my plugins...

    Code:
    >#
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006da31073, pid=2640, t
    id=1856
    #
    # JRE version: 6.0_23-b05
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (19.0-b09 mixed mode windows-amd64
    compressed oops)
    # Problematic frame:
    # V  [jvm.dll+0x241073]
    #
    # An error report file with more information is saved as:
    # D:\server\hs_err_pid2640.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    #
    

    After that it returns me to a command prompt. I removed STATS.JAR from my plugins directory and am able to keep my server online. Would really like to try this plugin though.
     
  14. Offline

    Filip Weiss

    Same thing here. (Bukkit 617) Please fix it :)
     
  15. Offline

    Vimm


    Same here also :(
     
  16. Offline

    Jacob Honoré



    I got the same problem, so its obviously not a singletime error :)
     
  17. Offline

    CyborgOne

    do you use the "RemoteToolkit"-Plugin? Then you can edit the config-file to fix this problem.
    (only workaround. the error still needs to fixed here, but your server doesn't restart ;) )
    in the "wrapper.properties" in "minecraft/toolkit"-Folder you have to set the "restart-on-severe-exception"-Property to false.

    In my case it resolve the problem of automatic restart.
     
  18. Offline

    mxms

    Achievements is unusable, however stats is just working fine. I'm getting the same Achievement errors many are posting in this thread.
     
  19. Offline

    d4rky

    hi...

    my actually workaround is to deactivate permissions 2.5.5 an run on op-perms :p

    but you should be sure that your plugins runs without permissions

    after i've done this there are no problems
     
  20. Offline

    ScavangeR

    Thx but actualy many of my used plugin use permissions. Also i prefere to report the achievements use than disable permission especialy cause i never used achievements before and all my users get none of them ^^.

    Btw, it seems to happen only on the "first visit achievement"... I didn't try about other money related achievements... But maybe it's a track to fix it...
     
  21. Offline

    eRko16

    Doesn't work playtime, everything works fine except played time :/
     
  22. Is it possible, to get a German translation?

    glg
    Chriss
     
  23. Offline

    Scipione

  24. Offline

    Jiggs

    I have set it to only update every 20 minutes, as it causes quite a lot of lag for a few seconds each time it does so. However, it now is only updating playtime in 20 minute lots. For example, I played for about 43 minutes, but it shows as 1 hour, because it updated 3 times while I was one.

    Is there anyway to have it save the stats locally with more accuracy and then have it upload every 20 minutes, so that playing 12 minutes is shown as 12 minutes instead of 0 or 20?

    I hope that made sense,
    Thanks

    EDIT: also, I just picked up 250190 (instead of about 30) bones apparently. and 100 (instead of 1 or 2) diamonds last night. Some items seem to be calculated wrongly?
     
  25. Offline

    GregRUS

    Have the same problem with iConomy when using achievements plugin..
    But stats are compatible!
     
  26. is there a german translation ;(

    greetings
    Chriss
     
  27. Offline

    MJRamon

    Can you please add no conflict with iConomy v4.65? It crashes, if there is Achievements v0.972 plugin at my server.
    I need them both.
    See my bug report at iConomy thread
     
  28. Offline

    turtlelink2

    do the conditions function properly? im using essentials groupmanager and the bridge but the "group vip" condition is never fulfilled

    EDIT: nvm took out the []'s and it worked
     
  29. Offline

    ronix

    I have the same issue.
     
  30. is it possible to get other language translations for the "achievements.txt"?

    greetings
    Chriss
     
  31. Offline

    ssechaud

    Some people have suggested that Acievements may be responsbile for cauing an error in iConomy, does anyone know if it needs to be fixed here or in iConomy, or even confirm it's really Achievements causing the bug. It does seem to only appear for people using both:

    2011-04-06 22:25:08 [SEVERE] tried to access class com.nijiko.coelho.iConomy.iConomy$Listener from class com.nijiko.coelho.iConomy.iConomy loading iConomy v4.65 (Is it up to date?) java.lang.IllegalAccessError: tried to access class com.nijiko.coelho.iConomy.iConomy$Listener from class com.nijiko.coelho.iConomy.iConomy at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:174) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72) at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257) at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     

Share This Page