[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

    pavel

    Multi server and one base mysql and one table `stats` not working plugin Stats, no write stat in table.
    Severe and warning no, all clear

    CraftBukkit#9 build 03.10.2011
    MyHome, GroupManager, Stats, WorldGuard, WorldEdit, Essentials.*, AnjoSecurity, LWC, DynamicMap, iConomy, DynamicMarket

    need help, thx
     
  3. Offline

    Xylogeist

    Please remove the condescending attitude before you login. At the time I posted that, and probably when you're readin this, there was no mention of group manager in the OP. Only "permissions 2.0" (which is an entirely different pluggin). So yes, it was important that I ask. Knock it off. [/logic]

    EDIT: Thankfully, he/she added it to the list now, answering the question you didn't feel necessary...
     
  4. Offline

    scar413

    i doubt it. the supported plugins (even gm) are listed since march 3.
    its just annoying when 50% of the questions are answered in the op.
     
  5. Offline

    Oscarius

    CB 493

    What causes this?
     
  6. Offline

    cloudstrife0257

    I'm having problems with blockcreate achievements:

    Code:
    1:Expert Engineer:1:blockcreate:redstone:128:Awarded for your outstanding dedication to redstone wiring!:money 100
    Achievement never shows up... help?
     
  7. Offline

    brafenschlug

    I think it's a bug in the plugin. I tried setting the debug flag to true and place some redstone but it never shows up in the log..

    Code:
    08:09:57 [INFO] [Stats-0.7] [DEBUG]: adding 1 to stats/armswing of brafenschlug
    08:09:57 [INFO] [Stats-0.7] [DEBUG]: adding 1 to blockdestroy/redstonewire of brafenschlug
    08:09:57 [INFO] [Stats-0.7] [DEBUG]: adding 1 to stats/totalblockdestroy of brafenschlug
    08:09:58 [INFO] [Stats-0.7] [DEBUG]: adding 1 to itempickup/redstonedust of brafenschlug
    
     
  8. Offline

    Sol

    I am getting the same error. Removed stats until it gets updated I guess...

    ~Sol
     
  9. Offline

    MaMax

    my stats fail -.- what i can do wrong
    Code:
    2011-03-13 03:18:21 [SEVERE] [Stats-0.7] Error getting SQL-connection: org.sqlite.JDBC
    2011-03-13 03:18:21 [SEVERE] java.lang.ClassNotFoundException: org.sqlite.JDBC
    2011-03-13 03:18:21 [SEVERE]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2011-03-13 03:18:21 [SEVERE]     at java.security.AccessController.doPrivileged(Native Method)
    2011-03-13 03:18:21 [SEVERE]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    2011-03-13 03:18:21 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    2011-03-13 03:18:21 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    2011-03-13 03:18:21 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    2011-03-13 03:18:21 [SEVERE]     at java.lang.Class.forName0(Native Method)
    2011-03-13 03:18:21 [SEVERE]     at java.lang.Class.forName(Class.java:169)
    2011-03-13 03:18:21 [SEVERE]     at com.nidefawl.Stats.datasource.StatsSQLConnectionManager.getConnection(StatsSQLConnectionManager.java:20)
    2011-03-13 03:18:21 [SEVERE]     at com.nidefawl.Stats.Stats.<init>(Stats.java:498)
    2011-03-13 03:18:21 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-03-13 03:18:21 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    2011-03-13 03:18:21 [SEVERE]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    2011-03-13 03:18:21 [SEVERE]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    2011-03-13 03:18:21 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:109)
    2011-03-13 03:18:21 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    2011-03-13 03:18:21 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    2011-03-13 03:18:21 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    2011-03-13 03:18:21 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    2011-03-13 03:18:21 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    2011-03-13 03:18:21 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    2011-03-13 03:18:21 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    2011-03-13 03:18:21 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-13 03:18:21 [INFO] [Stats-0.7] Stats plugin is up to date
    2011-03-13 03:18:21 [SEVERE] [Stats-0.7] JDBC driver for SQLite not found. Disabling Stats
    2011-03-13 03:18:21 [SEVERE] Could not load plugins/Stats.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:113)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
        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)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:109)
        ... 8 more
    Caused by: java.lang.NullPointerException
        at com.nidefawl.Stats.Stats.<init>(Stats.java:524)
        ... 13 more
     
  10. Offline

    GhostToast

    i am running jigabot's deathban plugin and i think it is preventing the stats plugin from logging deaths. any suggestions?
    [MERGETIME="1300036689"][/MERGETIME]
    i think it's deathban preventing the deaths from being logged. i wonder if there's a way around this.
    [MERGETIME="1300036716"][/MERGETIME]

    this will also prevent player kills from being logged, unfortunately.
     
  11. Offline

    nidefawl

    You should ask the author of deathban to check on it
     
  12. Offline

    GhostToast

    i mentioned this potential conflict on his thread. not sure if he is still invested in that project or not.
    heroicDeath (entity kills entity wielding specific weapon) still gets notification though, regardless of deathBan.

    knowing nothing about bukkit/minecraft API, i assume only one event is registering? or are there multiple.
     
  13. Offline

    nidefawl

    There are multiple
    heroicDeath is a little different. It has no need to save non-player-enitities that got damaged by players as it doesnt track there deaths. Stats needs that to track kills sheep for example.

    I'll test deathBan to see if can fix it

    Edit: I can fix it, and if the conflict with anjosecurity is still present I can fix that as well
     
  14. Offline

    turtlelink2

    Quick question, after gaining a specific achievement I want the achiever to have the ability to use a new command, in example /spawn so how would I format it so that when they gain the achievement they can use that command?
     
  15. Offline

    GhostToast

    sweet! i just tested heroBounty and it didnt seem to register the completion of a bounty kill either, sadly. are you talking about fixing deathBan or your own plugin? i'd love it if heroBounty were working as well.
     
  16. Offline

    nidefawl

    Right now you would need to create a new group that has /spawn permission and put the user in that group by using the group-command.
    If ppl finally decide what permission system they want to use (or bukkit gets one) I could add a command to give single permissions.
    Another thing what I've thought about would be native plugin-command support.

    That should fix that as well
     
  17. Offline

    turtlelink2

    Hmmm that makes it a little hard, Heres what my idea is, I have a bunch of achievments based on playtime, that promote ranks automatically, I created a dungeon, and the reward for completing the dungeon would be an achievement that gives the completer a trivial plugin, the problem being that Ranks are already in effect and cant be changed..
     
  18. Offline

    nidefawl

    how did you setup the dungeon? And what permissions plugin do you use?
     
  19. Offline

    GhostToast

    couldn't you create a slew of off-shoot permissions groups? think like a tree branching. so say you had the following:
    moderator
    sponsorSilver
    sponsorGold
    friend

    couldn't you make permissions that were called the following, and inheriting from the previous groups?
    moderatorD (for dungeon)
    sponsorSilverD
    sponsorGoldD
    friendD

    Or some such? i know that would get tedious if you had to do a lot of them, but with inheritance it hopefully wouldn't be too bad?
    [MERGETIME="1300066633"][/MERGETIME]

    I too am very interested in how you set up the "award condition" for the dungeon. I want to make a newbie-dungeon which will prevent brand new players from having access to things like shop. Will also give them a separate spawn-point. Will being warped via EpicGates plugin work? (does that count as being teleported 1 time) I want to build an indestructible dungeon without any mobs. Think more like a labyrinth. But what can I set for completion objective?
     
  20. Offline

    turtlelink2

    How i set up the reward system is at the end of the dungeon there is a button, push the button receive a portal block (Item ID 90) from a dispenser way high up in the ceiling. when you pick it up you receive an achievement (/stats itempickup portal) because its an unobtainable and useless block, its a good way to give out achievements...the only issue i can see is players giving other players the portal. (people could also hack 1 up if that's still possible)

    Now the problem with the tree idea first here are all my ranks:
    Guest -> Player -> VIP -> Mod -> Smod -> Admin

    because its based on time played time, lets say I complete and gain the achievement as a guest... what would it put me into? GuestD? how will it know I am a guest and not an admin completing it? the next problem I see is after I have completed the dungeon and gained the achievement as a GuestD... I play for a while and get promoted to Player..
    I can see how it would work if there was a setting to get an achievement that required you to already have another achievement. Hope you can read all this =P your plugin makes an admins life so much easier...


    EDIT: The plugin I used for the dungeon is Controller blocks and Creaturebox.

    EDIT AGAIN: My permissions is groupmanager
     
  21. Offline

    GhostToast

    i see. i have an idea now, that may be less complicated for my own newbie dungeon.
    I may put a pig spawner in a closed-off room at the end, and put a sign that you have to sacrifice a pig to proceed. player kill pig = 1.

    and yes, to nidefawl - thank you so much for this plugin.
     
  22. Offline

    s0nge

    Anyone got a good achievements.txt file they maybe want to share? =)
     
  23. Offline

    Lookatmego

    since the stats records every players everything will it lag my server hardcore?
    [MERGETIME="1300114357"][/MERGETIME]
    1 more question when ever my players do /stats it jsut gives them the format for it like /stats [category,name blah blah] is there permission nodes i must give them?or wat?
     
  24. Offline

    Em0srawk

    I FINALLY got this working :)
    Here are examples of my achievements - http://pastebin.com/edtiZPF8
    Edit:
    I removed ones that only really applied to my server - forgot about the - 'I'm standing still because I want to talk' one though, it's just to be annoying to my friend who refuses to get a mic
     
  25. Offline

    kliu

    hi nidefawl

    Recently we've been getting the message in console that the achievement.txt is not found.

    2011-03-14 10:07:36 [INFO] [Achievements-0.7] achievements.txt is empty
    2011-03-14 10:07:36 [INFO] [Achievements-0.7] Found required plugin: Stats
    2011-03-14 10:07:36 [INFO] [Achievements-0.7] Found supported plugin: CraftIRC

    We have not changed the .txt name nor changed anything in the achievement properties regarding that line. Currently we are running CB 531. Should we delete the the achievement folder and allow it to auto generate a new one? Your help is appreciated.
     
  26. Offline

    nezbo

    Could you make an option for viewing other player's achievements and maybe for showing how many % of players have the individual achievements you see. The first one is kind of essential to brag about your acomplishments. Anyway thanks for an awesome addon!
    [MERGETIME="1300137987"][/MERGETIME]
    And maybe a command to list achievements that you haven't unlocked yet.
     
    Needlez01 likes this.
  27. Offline

    Needlez01

    I was running stats on my private server, it was working fine for a day. Then the cpu went from ~5% up to 50-80% without any change in plugins or players. Also the ram went up. After awhile I noticed that the stats stopped updating (ie when u use /stats it wasn't updating) and sometimes people were awarded the same award 5 or more for achieving it once.

    Also the most important thing I think; Everytime I started the server it would say "loaded world" once like normal and then like 5-10 times again. (this is when the cpu and ram would go up). After I disable Stats, everything went back to normal. So Stats is the problem :( Shame, it's such an awesome plugin.
    CB build: 516
     
  28. Offline

    Em0srawk

    I found that absolutely nobody could earn achievements even if they can use the /ach command, one of them was to log in once! Also my server kept crashing whilst running theses 2 plugins, although this could be from my rubbish server provider, I'll be changing soon so I'll see if that helps.
     
  29. Offline

    turtlelink2

    I guess I buryed my questions to deep so I will restate them more clearly.... Is it possible to set prerequisite for acheements? Eg you may not receive ach 1 until you have ach 2
     
  30. Offline

    Abadon84

  31. Offline

    GhostToast

    uh oh did i just not notice this before or what? why does this say inactive? nooooo
    nidefawl, any chance on that deathBan fix?
    [MERGETIME="1300193631"][/MERGETIME]
    Yes. Use the downloadable achievement editor and click "advanced". You can make 1 achievement be a pre-requisite of another.
    [MERGETIME="1300206362"][/MERGETIME]
    Update: I'm now using GhostBuster plugin to handle "death bans", and it is passing the player kill notification to HeroBounty now (something deathBan plugin was not doing) - however, the player deaths are still not being logged to stats and achievements. Any ideas?
     

Share This Page