[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


    Is there a way to do multiple triggers now? Say like I want to reward a player for laying down 16 minecart tracks, a minecart, a powered minecart and a storage minecart?
  3. Offline


    you have the option to say that you need another quest to complete the actual one.
    With this option you can do that. or?
  4. Offline


    Latest Achievements and CraftIrc doesnt like each others:

    This server is running Craftbukkit version git-Bukkit-0.0.0-453-g51b7cd8-b435jnks (MC: 1.3)
    Achievements.jar EssentialsHelp.jar EssentialsTele.jar Healthy.jar
    CraftIRC.jar EssentialsHome.jar EssentialsWarp.jar interest.jar
    DeathTpPlus.jar Essentials.jar FakePermissions.jar LWC.jar
    dynmap.jar EssentialsSpawn.jar GroupManager.jar Minequery.jar

    2011-02-24 13:33:21 [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:426)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.animosity.craftirc.CraftIRC
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 13 more
    Kyrin likes this.
  5. Offline


    Is there any support for the web stats for this plugin? Becuase i get loats of this errors:

    Notice: Undefined index: session in E:\USB Webserver\root\webstats1.3\index.php on line 36
  6. Offline


    noone else?

    2011-02-25 10:32:40 [INFO] [Stats-0.53] giving money (money)
    2011-02-25 10:32:40 [SEVERE] Exception in thread "Thread-109"
    2011-02-25 10:32:40 [SEVERE] java.lang.NoSuchMethodError: com.nijikokun.bukkit.iConomy.Database.get_balance(Ljava/lang/String;)I
    2011-02-25 10:32:40 [SEVERE]     at com.nidefawl.Achievements.Commands.AchCommandMoney.handleCommand(AchCommandMoney.java:37)
    2011-02-25 10:32:40 [SEVERE]     at com.nidefawl.Achievements.Commands.AchCommandHandler.run(AchCommandHandler.java:94)
    2011-02-25 10:32:40 [SEVERE]     at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:316)
    2011-02-25 10:32:40 [SEVERE]     at com.nidefawl.Achievements.Achievements.access$0(Achievements.java:268)
    2011-02-25 10:32:40 [SEVERE]     at com.nidefawl.Achievements.Achievements$CheckerTask.run(Achievements.java:208)
    2011-02-25 10:32:40 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    2011-02-25 10:32:40 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    2011-02-25 10:32:50 [INFO] [Stats-0.53] giving money (money)
    2011-02-25 10:32:50 [SEVERE] Exception in thread "Thread-113"
    2011-02-25 10:32:50 [SEVERE] java.lang.NoSuchMethodError: com.nijikokun.bukkit.iConomy.Database.get_balance(Ljava/lang/String;)I
    2011-02-25 10:32:50 [SEVERE]     at com.nidefawl.Achievements.Commands.AchCommandMoney.handleCommand(AchCommandMoney.java:37)
    2011-02-25 10:32:50 [SEVERE]     at com.nidefawl.Achievements.Commands.AchCommandHandler.run(AchCommandHandler.java:94)
    2011-02-25 10:32:50 [SEVERE]     at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:316)
    2011-02-25 10:32:50 [SEVERE]     at com.nidefawl.Achievements.Achievements.access$0(Achievements.java:268)
    2011-02-25 10:32:50 [SEVERE]     at com.nidefawl.Achievements.Achievements$CheckerTask.run(Achievements.java:208)
    2011-02-25 10:32:50 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    2011-02-25 10:32:50 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    also cb 441 and icon 3.0

    if someone else has this working to give money, could you tell me the command?

    I'm currently using at the end of my achievements :money 100

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


    im pretty sure thats the command for cash.

    This needs to be updated please author!!!

    As per a post above, this vs craftirc = fail.
  8. Offline


    Quick question:
    When is a player added to the stats DB? My best guess is the first time they place a block, yes?

    I've had people join/disconnect without doing anything, or those who've never placed a block and they don't show up in the databse.

    Just wondering what triggers them being added.

  9. change line 36
    if ($_SESSION['session'] == true)

    if (isset($_SESSION['session']) == true)
  10. Offline


    I keep getting this error when the STATS plugin registers something.
    I don't know if it's me, the plugin, or craftbukkit...
    Hope you can fix this, or help tell me what I'm doing wrong :p

    My details:
    Windows 7 64bit
    3,0 Ghz Quadcore
    4GB DDR3 RAM
    1GB RAM for craftbukkit
    Craftbukkit build 440
    Other Plugins:
    Achievements, BukkitUp, Essentials, EssentialsBan, EssentialsEco, EssentialsGod, EssentialsHome, EssentialsProtect, EssentialsSpawn, EssentialsTele, EssentialsWarp, iChat, MCDocs, MinecartManiaCore, MinecartManiaSignCommands, MinecartManiaStation, Permissions, Stats

    And I get stuff like this when using Craftbukkit 450

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


    Can I change the messages for achievements? I have a VERY bright / semi evil genius 6 year old on our server and his parents would flip a lid if they saw the sh*t word, and not sure of others that are there, LOL. But we are enjoying the plugin. So, can I change and view the comments somehow? If so, where would I find them?
  12. Offline


            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-02-26 10:55:12 [SEVERE] Could not pass event PLAYER_DROP_ITEM to Stats
            at org.bukkit.craftbukkit.entity.CraftItem.getItemStack(CraftItem.java:17)
            at com.nidefawl.Stats.StatsPlayerListener.onPlayerDropItem(StatsPlayerListener.java:164)
            at org.bukkit.plugin.java.JavaPluginLoader$16.execute(JavaPluginLoader.java:205)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            at net.minecraft.server.EntityHuman.a(EntityHuman.java:262)
            at net.minecraft.server.EntityHuman.b(EntityHuman.java:226)
            at net.minecraft.server.ContainerWorkbench.a(SourceFile:61)
            at net.minecraft.server.EntityPlayer.v(EntityPlayer.java:320)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:750)
            at net.minecraft.server.Packet101CloseWindow.a(SourceFile:16)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:252)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-02-26 10:55:14 [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to Stats
    Keep getting this error, how can I debug it?
  13. Webstats Security Update 1.3.1 has been released !!!
    Click here
  14. Offline


    the money comand for the achievements dont work with iConomy 3.0. but there are some major problems with 3.0, and 4.0 is on the horizon.

  15. Offline


    I have a request, though. To have achievements be able to give money for the EssentialsEco plugin, not only iConomy. It would help a lot, I kind of prefer the new EssEco over iConomy, personally.
  16. Offline


    can you add compatibility for Permissions 2.4 (Phoenix)?
  17. Offline


    can you add compatibility for GroupManager? God I hate fragmentation :(
  18. Offline


    +1 for groupmanager support
    no point adding support for nijs permissions as th authors not updating it but groupmanager is fantastic ! on the fly permissions woohoo :)
  19. Offline


    How can I make stats work with MySql?
    I can change the stats-datasource = Mysql
    But theres not config for host, database name, user and pass...
  20. Offline


    +1 for permission 2.4 support because its lightweight and clear^^
  21. Offline


    @Chugger Yes you can, I changed mine for a similar reason as well... Edit the Achievements.txt file....
  22. Offline


    How do i have to set the permissions for /stats command? the example of the wiki seems not to work for me... It saves the stats for me because i am admin but not for my default group.
    I tried stats.stats, stats.*, /stats, /* but none of them worked
  23. Offline


    i thought group-manager has FakePermissions, which should work with every Permissions supporting plugin....

    For permissions (like /stats command, /ach, /achadmin...):
    GroupManager is supported next version.
    Permission 2.4 is working

    For group command (achievement reward):
    Will take a closer look if booth can be supported...
  24. Offline


    one cosmetic question, could u put the pluginsfolders to the plugin folder like:
  25. Offline


    will do that at some point to be more bukkit conform
  26. Offline


    ok, thanks:)
  27. Offline


    is there a way to change the /stats command? mcmmo uses the same command
    good news your adding groupmanager support! thank you
    looking fwd to using this plugin (even plan on creating a achievement list while waiting :) (well of course upload it here)
  28. Offline


    you can change the command for mcmmo's /stats in die mcmmo.properties
  29. Offline


    Cool thank you!

    now i cant wait for the groupmanager support!

    i grabbed the achievement generator (getting .net now) have grabbed webstats (not sure how to set that up at mo anyone know of a good free webhost to put it on (dont want to use the server pc as an apache webhost too lol)
  30. Offline


    Im getting console errors that say stats isnt registering PLAYER_PICKUP_ITEM or PLAYER_DROP_ITEM
  31. Offline


    got this error on latest craftbukkit:

    12:09:33 [INFO] [Stats-0.53] Converted 0 stat files to SQLite
    12:09:33 [INFO] [Stats-0.53] Using Nijis Permissions for permissions
    12:09:33 [SEVERE] PLAYER_COMMAND loading Stats v0.53 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_COMMAND
        at com.nidefawl.Stats.Stats.initialize(Stats.java:591)
        at com.nidefawl.Stats.Stats.onEnable(Stats.java:548)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:117)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
        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)

Share This Page