[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

    ronix

    Yes, I have the same strange error. Strange, because it seems that something tries to access an inner class of iConomy, called listener. I do not know which class accesses this, but the inner class is private. Thus, if Achievements would try to access it, such an error would be thrown.

    Maybe this helps nidefawl to pin down the problem.
     
  3. Offline

    nidefawl

  4. Offline

    unachemaxwell

  5. Offline

    wolrah

    I'm getting similar, but the dependency Achievements is failing on is CraftIRC. I do not run CraftIRC and never have.

    CB 544 on Windows Server '03
     
  6. Offline

    unachemaxwell


    I don't use essentials, so basically I think its trying to load the plugins as an essential to running stats/ach and not just a hook-in if there type of thing.
     
  7. Offline

    nidefawl

    so, what does Achievements 0.981 do?
     
  8. Offline

    unachemaxwell

    works well, though I think it changed my items file a bit so Ill have to be tweaking the achievement files again:p
     
  9. Offline

    wolrah

  10. Offline

    nidefawl

    you are not running the RB 617
     
  11. Offline

    unachemaxwell

    okay, it didn't touch my item.txt, what it did do though it reset the line in my configuration for some reason achievements-defintions-sql defaulted back to false for some reason. I changed this and it began working 100% again.
     
  12. Offline

    nidefawl

    yes, fixed a typo there
     
    unachemaxwell likes this.
  13. Offline

    unachemaxwell

    Thanks for your work, always appreciate when your around to check up on things. enjoy!
     
  14. Offline

    d4rky

    hi..

    so now i got

    SEVERE] Could not load plugins/Achievements.jar in plugins: Essentials
    org.bukkit.plugin.UnknownDependencyException: Essentials
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:88)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
    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)

    and achievs incl. stats dont work

    reply undo... ive copied your new stats and achievs a second time and i hope now it works :p

    sorry... but this problem still present in 0.98

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

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

    Umbra

    Still failing.
     
  16. Offline

    Slugslug

    me 2 it crashes my server
     
  17. Offline

    ksevelyar

    Code:
    23:16:07 [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
    23:16:07 [SEVERE]       at com.nidefawl.Stats.Permissions.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:74)
    23:16:07 [SEVERE]       at com.nidefawl.Achievements.AchConditionals.meets(AchConditionals.java:51)
    23:16:07 [SEVERE]       at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:290)
    23:16:07 [SEVERE]       at com.nidefawl.Achievements.AchievementsCheckerTask.run(AchievementsCheckerTask.java:11)
    23:16:07 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    23:16:07 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    23:16:07 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    23:16:07 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    23:16:07 [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:290)
            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)
     
  18. Offline

    Iqualfragile

    oh, you have got some bug/eeg in it: ever heard about herobine?
     
  19. Offline

    Josh Ice

    This is what I'm getting. Tried running the server with only stats and achievements and it still gives me a disconnect and an error. I noticed the LoginMessage has an error too but it's not affecting it. Only stats and achievements.

    Edit: I'm actually almost positive that this is an error between Permissions and Achievements. While running Permissions, Achievements, and Stats, I recieve the error. But with only Permissions and Stats, it runs just fine with no errors.

    Show Spoiler

    2011-04-07 12:22:04 [INFO] Starting minecraft server version Beta 1.4
    2011-04-07 12:22:04 [INFO] Loading properties
    2011-04-07 12:22:04 [INFO] Starting Minecraft server on 192.168.1.64:25565
    2011-04-07 12:22:04 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-612-g4c7a9e7-b617jnks (MC: 1.4)
    2011-04-07 12:22:04 [INFO] Preparing level "Ryoken's Minecraft Server"
    2011-04-07 12:22:04 [INFO] Preparing start region
    2011-04-07 12:22:04 [INFO] 144 recipes
    2011-04-07 12:22:05 [INFO] Invalid config file found and converted to proper name/format.
    2011-04-07 12:22:05 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-04-07 12:22:05 [INFO] iChat (v2.2.2) enabled
    2011-04-07 12:22:05 [INFO] LoginMessage 0.6_2 enabled
    2011-04-07 12:22:05 [INFO] MobRider enabled
    2011-04-07 12:22:05 [INFO] MobRider - Permissions Plugin Detected
    2011-04-07 12:22:05 [INFO] NaturalGiants version 1.1 is enabled!
    2011-04-07 12:22:05 [INFO] [Permissions] version [2.5.5] (Phoenix) loaded
    2011-04-07 12:22:05 [INFO] [iChat] Found Permissions (v2.5.5)
    2011-04-07 12:22:05 [INFO] PvP Control version 1.5 is enabled!
    2011-04-07 12:22:05 [INFO] [SimpleSpleef] SimpleSpleef version 0.3 is enabled!
    2011-04-07 12:22:05 [INFO] Snowball fight version 0.3 is enabled!
    2011-04-07 12:22:05 [INFO] [Stats-0.98] Using Nijis Permissions for permissions
    2011-04-07 12:22:05 [INFO] [Stats-0.98] Plugin Enabled
    2011-04-07 12:22:05 [INFO] [Achievements-0.981] Found required plugin: Stats
    2011-04-07 12:22:05 [INFO] [Achievements-0.981] loaded 65 achievements definitions
    2011-04-07 12:22:05 [INFO] [Achievements-0.981] Achievements 0.981 Plugin Enabled
    2011-04-07 12:22:05 [INFO] Done (0.140s)! For help, type "help" or "?"
    2011-04-07 12:24:59 [INFO] vegakuma [/192.168.1.64:49381] logged in with entity id 173
    2011-04-07 12:24:59 [INFO] Loaded world: Ryoken's Minecraft Server
    2011-04-07 12:24:59 [SEVERE] Could not pass event PLAYER_JOIN to LoginMessage
    java.lang.NullPointerException
    at com.nijiko.permissions.Control.getGroupPrefix(Control.java:589)
    at com.tahkeh.loginmessage.LoginMessage.process(LoginMessage.java:157)
    at com.tahkeh.loginmessage.LoginMessage.sendMultiMessage(LoginMessage.java:235)
    at com.tahkeh.loginmessage.LoginMessagePlayerListener.onPlayerJoin(LoginMessagePlayerListener.java:70)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:169)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-07 12:25:05 [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
    2011-04-07 12:25:05 [SEVERE] at com.nidefawl.Stats.Permissions.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:74)
    2011-04-07 12:25:05 [SEVERE] at com.nidefawl.Achievements.AchConditionals.meets(AchConditionals.java:51)
    2011-04-07 12:25:05 [SEVERE] at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:290)
    2011-04-07 12:25:05 [SEVERE] at com.nidefawl.Achievements.AchievementsCheckerTask.run(AchievementsCheckerTask.java:11)
    2011-04-07 12:25:05 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-07 12:25:05 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-07 12:25:05 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-07 12:25:05 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-07 12:25:05 [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:290)
    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)
     
  20. Offline

    MJRamon

    Allright, thanks! Works good with iConomy @ 617
     
  21. Offline

    GregRUS

    CB #617
    Permissions 2.5.5, latest achievements.. almost same kit of plugins as ksevelyar posted above... and the same problem
    Code:
    2011-04-08 00:00:49 [INFO] Gregory was killed by lava
    2011-04-08 00:01:01 [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
    2011-04-08 00:01:01 [SEVERE]     at com.nidefawl.Stats.Permissions.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:74)
    2011-04-08 00:01:01 [SEVERE]     at com.nidefawl.Achievements.AchConditionals.meets(AchConditionals.java:51)
    2011-04-08 00:01:01 [SEVERE]     at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:290)
    2011-04-08 00:01:01 [SEVERE]     at com.nidefawl.Achievements.AchievementsCheckerTask.run(AchievementsCheckerTask.java:11)
    2011-04-08 00:01:01 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-08 00:01:01 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-08 00:01:01 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-08 00:01:01 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-08 00:01:01 [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:290)
        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)
     
  22. Offline

    ronix

    Hm... current permissions plugin contains: public abstract boolean inGroup(String world, String name, String group) - seems that the method signature is outdated. Add world as additional parameter.
     
  23. Offline

    68x

    I have the exact same error. This error starts off a stream of errors which seems to bog down my server due to the console spam.
     
  24. Offline

    MJRamon

    Use Essentials and EssentialsGroupManager (1 to 1 functionality of Permsissions, same config) - more power and works like a charm
     
  25. Offline

    nidefawl

    Fixed the Permissions thing... (hopefully)
     
  26. Offline

    68x

    Code:
    03:05:15 [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)
    
    The dreaded error which sends my server console into chaos with error spam.
    This will show up on server start up then spam the console messing with my other plugins like iChat and LWC.
     
  27. Offline

    Josh Ice

    It works!
    No more server crashing from that error.
    Well done ronix for catching that bug and thank you nidefawl for fixing it.
     
  28. Offline

    ronix

    Thanks a lot nidefawl - great work!
     
  29. Offline

    68x

    Can you please help me >.<? This error causes my other plugins to go into chaos.
    Code:
    03:05:15 [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)
     
  30. Offline

    ronix

    Maybe have a look at the posts above - same error.
     
  31. Offline

    Scipione

    Thank you very much for you work updating this very great plugin btw :)
     

Share This Page