[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


    Hi i was wondering if you could help me with setting this up with an external mysql server.

    My config file is :

    sql-db = obsidianempire_m
    sql-pass = *****
    sql-table-stats = stats
    sql-user = [email protected]
    stats-afk-delay = 300   # (seconds) If there is no player-activity in this time playedfor does not get updated. Set to 0 to disable.
    stats-autoUpdate = false
    stats-datasource = mysql   #sqlite or mysql
    I cannot seem to connect to my mysql.
    There is not hostname in the options :S

    hostname = obsidianempire.dns-systems.net
    username = obsidianempire_m
    database = obsidianempire_m
  3. Offline

    tha d0ctor

    The MySQL server is hosted on godaddy, its paid for as part of my web hosting package

    It started when I updated craftbukkit from 684 to 740

    I do use the database for 1 otther plugin or so but that hasn't caused any problem in the past. Other Mysql based things have worked for me except yours and MCMMO, maybe its the connector like u said.

    I run my server with mymcadmin so I dont have tto much flexibility as to putting jars in my server root but i ordered a new hoster that should arrive soon, hopefully localhost mysql server on that dedicated server will fix this problem
  4. Offline


    Never had any problems with my localhost mysql.
    I dont recommend using a remote mysql server. Use sqlite instead..
  5. Offline


    @doctor remote mysql also working fine, perhaps its a problem with your hoster. We have 2 servers which are connected together to host multiple worlds, and are streaming all stats into one database without any problems.
  6. Offline

    tha d0ctor

    thnaks for the input.. its probably another godaddy fail!
  7. Offline


    Hello, we are starting to try Stats on our server and have seen a few items:

    - When using the /stats [player] command for a player that is offline, an error is returned - it looks for a category instead of a playername.

    - When testing PvP kills between players, the kills-->Player stat doesn't isn't logged in the MySQL db. It also doesn't appear on the kills line with the /stats [player] command.

    - Although the deaths-->Player stat does get logged into the db, it doesn't appear to be reflecting ingame with the /stats [player] command.

    Using cb714, and I have stats-log-damage-events set to true in stats config.
  8. Offline


    the link is dead.
  9. Offline


    Did you try removing the connector jar from the craftbukkit jar?

    Offline players stats are not loaded, did not add that 'feature' yet
    Will do some testing about the kill stats
    nope :p

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


    considered inactive
  11. Offline


    hey there doc its not a problem with godaddy its the the way your typing it into the plugins is not correct and iam in the axact same situation i want to use my hosting companys mysql which should work no different to the localhost version, but we just need to know how to do it so if someone could flick a config file for stats useing mysql with docs example so that would be or repair my example below would be greath also. for my own reasons i cant use sqlite thanks.

    #sql-db = jdbc:mysql://example.com.au:3306/minecraft #not needed for sqlite!
    #sql-pass = example #not needed for sqlite!
    #sql-user = example #not needed for sqlite!
    stats-datasource = mysql #sqlite is default
    sql-table-stats = stats #table-name in database, Stats and achievements will create all tables for you
    # if you dont want to use mysql withs Stats OR Achievements you usually dont have to touch the sql-settings
    stats-afk-delay = 300 # in seconds If there is no player-activity in this time
    # then the play-time for this player will not be increased.
    # Player will be set back active when he moves/destroys or creates blocks/uses items
    # Set to 0 to disable.
    stats-autoUpdate = true # auto-update if there is a new version
    # checks on server start, requires server restart
    stats-deathnotify = true # display DeathMessages in the worlds chat (including the cause)
    stats-debug = false # same as ingame/console command /stats debug
    # display messages about stats that get updated
    # also enables debug for Achievments. same as /stats debug
    stats-login-delay = 3600 #limit between login-count increases (in seconds)
    stats-save-delay = 30 #delay between automatic savings of players stats (seconds)
    stats-message-prefix = &e[Stats]&f #prefix message in chat for the /stats-command

    where the database is called minecraft
    the user is example
    the password is example
    and the location is example.com.au

    thanks for any help (also note i have been trying many tutorials on mysql and bukkit mod specific tutorials in for mysql and so far havent been able to get them to work, so I not just throuwing my hands up before trying)
  12. Offline

    tha d0ctor

    not but currently I can't do this given the FTP structure of my hosting provider. I ordered a new server a while back, I'll see how that works out once that is set up, hopefully soon.
  13. Offline


    hope someone wiser than we can shed some light on all this :D
  14. Offline



    Hey nidefawl, how's a potential update for iConomy 5.0 looking?
  15. Offline


    ohhh, again?
    Why are user,pass and db-string commented out?
  16. Offline


  17. Offline



    Why are user,pass and db-string commented out?[/quote]

    so i should delete the comments? there were in the default config
  18. Offline


    Are you planning an update to be able localize the menus of Stats und Achievements ?
  19. I am using the sqlite, but my achievements do not seem to be working. It generates the playername.txt inside the achievement folder, but never actually updates with achievements. There are no errors and it says it syncs with iConomy. Please help.
  20. Offline


    Powered Rails aren't logged with names in the database (not sure if any other new block is)
  21. Offline


    FORK, FORK, Fork? anyone...
  22. Offline


    Running 740 and my players were able to do /ach #1 /ach #2 etc with the permission "achievements.view.own" and view the full achievement list. Which i didn't want them to see lol everything works fine when i removed achievements.view.own except now they can't see they're own achs.
  23. Offline


    Why is this marked as inactive, it works fine on 740, and I don't see 766 breaking it. It's a great plugin, and if @nidefawl doesn't have time, hopefully someone will pick it up.
  24. Offline


    its still missing proper iconomy5 support ... also missing the names of the new blocks in the database, so its actually not fully working fine ..
  25. Offline


    Does anyone know if there is going to be an update for Iconomy 5 or even any at all? I have been really working on creating my achievements for awhile now and only to have it not work when I am ready would really be sad. :( This was such a great mod!!!
  26. Offline


    What does the damage stat go by? Does 1 mean 1 heart damage or 1 hitpoint damage (10 hitpoints make a heart)?
  27. Hi, is it possible to add the new Blocks to the Plugin?
  28. Offline

    Lord Chaos

    This does not work with iConomy 5.0 it seems. :( Can someone please fork this? Its an awesome plugin and considering the weak stats and achievements notch made, this is our only hope for a proper system.

    2011-05-15 17:00:10 [WARNING] Task of 'Achievements' generated an exception
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
        at com.nidefawl.Achievements.Commands.AchCommandMoney.handleCommand(AchCommandMoney.java:28)
        at com.nidefawl.Achievements.Commands.AchCommandHandler.run(AchCommandHandler.java:123)
        at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:327)
        at com.nidefawl.Achievements.AchievementsCheckerTask.run(AchievementsCheckerTask.java:11)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:138)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:360)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
        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:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 8 more
  29. Offline


    Replace all 'money xy' achievements with "/money grant * xy"

    Works for us!
    Scipione likes this.
  30. Offline

    Lord Chaos

    Is there a space after the * ?
  31. Offline


    Yes, so to give someone 100 money do /money grant * 100

Share This Page