[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

    Josh Ice

    @jonathan edel
    Go into your "/plugins/achievements/" directory and fine the file called achievements.txt.
    This is where all of your achievements are located.
     
  3. Offline

    Guenael

     
    Last edited by a moderator: Dec 15, 2016
  4. Offline

    neogeek23

    Is there a way so that if I do some event (such as death) that I can loose and have to re-earn some achievements?
     
  5. Offline

    derchris

    After looking through some of the comments, users reporting not all items in items.txt, does the current version has all included? Or is there still stuff missing?
     
  6. the stats-plugin only loggs the OPs of the server! but why?
    Is it possible to logg every player?

    greetings
    Chriss
     
  7. same :(
     
  8. Mine is logging all the players, but it is not recording time, how do I fix that? Also is there any advantage to using an sql database over sqlite?
     
  9. Offline

    Linaks

    set the permissions "stats.log" to your permission plugin.
    I have also a question. How can i set anyone who won the achievement into a group with the Permissons-Plugin?
     
  10. Offline

    Jdbye

    This still hasn't been updated to support the latest CraftIRC build. If you're gonna support another plugin, please make sure to keep it up to date so it doesn't break said plugin.
     
  11. ok, i fixxed the problem. I had to add the permission "war.player" to the group!

    greetings
    Chriss

    But is ther a possibility to deactivate a zone?
    A temporarily deaktivating of a zone, without deleting the zone.
    So tha nobody can play in this zone!

    greetings
    Chriss

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  12. Already check this ! Works only for OP :(
    my permissions file :

    Code:
    [...]
    permissions:
            - foo.bar
            - stargate.use
            - general.player-info
            - achievements.check
            - stats.log
            - achievements.view.own
            - achievements.view.list
            - stats.view.own
            - stats.view.others
            - stats.view.playtime
            - war.player
    [...]
    fixed : stats ignore inheritance, you have to add permissions for each group manually
     
  13. Offline

    Linaks

    Please fix this bug with iConomy :(
    Code:
    NOT function properly: git-Bukkit-0.0.0-654-geba6623-b678jnks (MC: 1.4)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:174)
    java.lang.IllegalAccessError: tried to access class com.nijiko.coelho.iConomy.iConomy$Listener from class com.nijiko.coelho.iConomy.iConomy
    > 20:54:44 [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?) 
    Thanks ;)
     
  14. Offline

    JaredKey

    Not sure what happened. Logged in and found this in the server log.

    CB670
    Stats 985

    Code:
    2011-04-14 14:37:27 [SEVERE] [Stats-0.985] onPlayerQuit did not happen, unloading ikkaku0 now
    2011-04-14 14:37:27 [SEVERE] java.util.ConcurrentModificationException
    2011-04-14 14:37:27 [SEVERE] at java.util.HashMap$HashIterator.nextEntry(HashMap.java:848)
    2011-04-14 14:37:27 [SEVERE] at java.util.HashMap$ValueIterator.next(HashMap.java:877)
    2011-04-14 14:37:27 [SEVERE] at com.nidefawl.Stats.Stats.saveAll(Stats.java:678)
    2011-04-14 14:37:27 [SEVERE] at com.nidefawl.Stats.Stats$SaveTask.run(Stats.java:497)
    2011-04-14 14:37:27 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-14 14:37:27 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-14 14:37:27 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-14 14:37:27 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-14 14:37:27 [SEVERE] Unexpected exception
    java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:848)
    at java.util.HashMap$ValueIterator.next(HashMap.java:877)
    at com.nidefawl.Stats.Stats.saveAll(Stats.java:678)
    at com.nidefawl.Stats.Stats$SaveTask.run(Stats.java:497)
    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)
    2011-04-14 14:38:21 [INFO] Read timed out
    2011-04-14 14:39:03 [INFO] Read timed out
    2011-04-14 14:39:05 [INFO] Read timed out
    2011-04-14 14:39:22 [INFO] Read timed out
    2011-04-14 14:39:31 [INFO] Read timed out
    2011-04-14 14:39:31 [INFO] Read timed out
    2011-04-14 14:40:46 [INFO] Read timed out
    2011-04-14 14:41:16 [INFO] Read timed out
    2011-04-14 14:41:20 [INFO] Read timed out
    2011-04-14 14:41:33 [INFO] Read timed out
    2011-04-14 14:42:00 [INFO] Read timed out
    2011-04-14 14:42:36 [INFO] Read timed out
    2011-04-14 14:42:49 [INFO] Read timed out
    2011-04-14 14:42:50 [INFO] Connection reset
    2011-04-14 14:43:09 [INFO] Read timed out
    2011-04-14 14:43:13 [INFO] Read timed out
    2011-04-14 14:43:16 [INFO] Read timed out
     
  15. Offline

    Scipione

    i don't know if this was already posted, but stats doesn't seem to count the kills
    if you enter "/stats kills creeper" for example, i always get "0" back (not only with creeper, with basically every mob)
    But server statistik page is showing the "overall kills" correctly
     
  16. Offline

    Ken R.

    Hellooo..
    Not sure if this is the right place, but I'll try anyway.

    So I'm using 'Essentials' , 'GroupManager' and 'Stats and Achievements'.
    But without assigning any permissions to a group except from essentials.help,
    'checkachievements, deleteachievements, reloadachievements' still pops up in the chat when typing /help. And they're able to execute them.

    Is there a way to remove these with permissions? I haven't seen any permission commands for that.
     
  17. Offline

    ScavangeR

    I see some ppl complain about "only op" are logged by Stats. I actualy got the same issue with Achievelents...
    Only mu ops are rewarded. Indeed i added - achievements.check to all my groups and restarted the server several times but no changes... Any idea ?

    I use Achievement 0.981 and CB 617.. No errors in the bukkit prompt.

    Any idea ?

    Whoops forgive me... Forgote to add the stats.log node for those groups ... Work fine now :p
     
  18. Offline

    nidefawl

  19. Offline

    Ken R.

    I also have another question btw. What permission makes peoples stats upload to sql? I put a normal user under my "Admin" group, which has '*'. Only then were their stats were uploaded to my sql server.
    But what specific permission does this?
     
  20. Offline

    lapzoo

    Wow Notch copies your plugin :)
     
  21. Offline

    Guenael

  22. Offline

    nidefawl

    Sorry for the late fix, I thought I will come up with a better solution than different .jar files
    Well, I copied it from https://github.com/bootswithdefer/boots-plugins :)
    And the idea of achievements in games is pretty old :p (still cool tho)

    Lets hope it Notch's version doesnt involve too much connections to minecraft.net for updating the stats
     
  23. Offline

    DannyLAGZLOL

    it wont create the .txt for me
     
  24. Offline

    unachemaxwell

    Okay, slight problem and easy to fix, but it breaks the plugin..... Notches stats folder creates in the .minecraft folder where I host my craftbukkit, can you remove the code that tries to move the /stats folder and fails the plugin if it can't? Only problem I am having right now on build 709
     
  25. Offline

    TheMadMan697

    I just tested out this plugin on my home pc (windows 7) and everything worked great. then uploaded to my real server which is running Debian and it causes groupmanager to give errors. in both cases i was using mysql and in both cases it created the tables and inserted data into them with no problems. I am using craftbukkit version 684 The files on the main server were the same as my test one and i even made sure by copying them down from the main server again to make sure every file was the same and it was the same results. below is the error that groupmanager throws on startup.

    Running any in game command related to groupmanger also causes errors. this problem is very frustrating because it was working fine on my pc at home and i cant figure out what’s causing this to happen. If anyone can help me out with this it would be awesome because i would really like to get this plugin working.
     
  26. Offline

    Scipione

    Bump
     
  27. Offline

    ShockBuddy

    Show Spoiler
    Need some Help, everytime i have this Plugin active and join my Server, im Falling into the nowhere, down and the Server overloads so i dont have any Control!

    The Server Monitor dont put out an errorcode, but after i join to the server it says the well known message:
    Can´t keep up! Did the system time change, or is the server overloaded?

    I try´ed it with the default achievements and with my German one:
    Show Spoiler
    # Achievements
    # Format is: enabled:name:maxawards:category:key:value:description[:commands[:conditions]]
    # commands are optional, separated by semicolons (;), available commands: item group
    # Example: 1:ClownPuncher:1:stats:armswing:1000:Awarded for punching the air 1000 times.[:item goldblock 1]
    # Example: 1:ClownPuncher:1:stats:armswing:1000:Awarded for punching the air 1000 times.[:item goldblock 1]
    1:Killing Spree:1:kills:player:3:3 Spieler Getoetet!:money 2500
    1:Ultra Kill:1:kills:player:10:10 Spieler Getoetet!:money 2500
    1:Master Kill!:1:kills:player:100:100 Spieler Getoetet!:money 2500
    1:Fatality!:1:kills:player:1000:1000 Spieler Getoetet!:money 2500
    1:Willkommen!:1:stats:login:1:Willkommen auf Nitro, dies ist dein erster Login! Du erhaeltst 5000 Minecraftdollar Startkapital!:money 5000
    1:Neuling!:1:stats:login:5:Erfolg fuer 5 Logins!:money 500
    1:Anhaenger!:1:stats:login:10:Erfolg fuer 10 Logins!:money 1000
    1:Treuer Spieler!:1:stats:login:50:Erfolg fuer 50 Logins!:money 1000
    1:Weltbekannt!:1:stats:login:100:Erfolg fuer 100 Logins!:money 10000
    1:Abhaengiger!:1:stats:login:1000:Erfolg fuer 1000 Logins! Danke fuer deine treue!:money 100000
    1:Schatz Jaeger!:1:stats:eek:penchest:5:Erfolg fuer das oeffnen von 5 Truhen!:money 100
    1:Indiana Jones!!:1:stats:eek:penchest:1000:Erfolg fuer das oeffnen von 1000 Truhen!:money 10000
    1:Draufgaenger!:1:deaths:total:5:Erfolg fuer das erleiden 5 Qualvoller Tode!:money 150
    1:Kaaa Buuuum!:1:deaths:explosion:5:Erfolg fuer 5 wundervolle Tode an Explosionen!:money 1
    1:Vorsicht, Klippe!:1:deaths:fall:500:Erfolg fuer 500 Gefallende Meter!;money 500
    1:Lake of Fire:1:deaths:fire:1:Erfolg fuer das Verbrennen! Das wird dich ewig verfolgen!;money 50
    1:Erster Block!:1:stats:totalblockcreate:1:Erfolg fuer das Platzieren des ersten Blocks!:item cobble 64;money 10
    1:Du bist Minecraft!:1:stats:totalblockcreate:10000:Erfolg fuer das setzen von 10.000 Bloecken!:item cobble 64;money 10000
    1:Hau ruf!:1:damagedealt:total:1:Erfolg fuer das erste austeilen von Schaden!:item woodsword 1;money 500
    1:Handgemenge!:1:damagedealt:total:50:Erfolg fuer das austeilen von 50 Schaden!:item diamondsword 1;money 1000
    1:Zeus!:1:damagedealt:total:500:Erfolg fuer das austeilen von 500 Schaden!:item goldenapple 1;money 5000
    1:Weg damit!:1:itemdrop::1:Erfolg fuer das wegwerfen eines Items!:money 5


    To write the achievs i used that Generator!

    I downloaded the latest Build of Craftbukkit from the Website, but it says always:
    This server is running Craftbukkit version git-Bukkit-0.0.0-659-gc210f-b684jnks (MC: 1.4)
    Cannot find the Download of the Build u testet!

    I hope you can help me by this!


    Forget, i fixed it myself!

    Whatever...

    [diamond][diamond][diamond][diamond][diamond]

    Keep up the work on it!
     
  28. Offline

    Johniver

    I'd like to add an reward for slaying monsters, lets say glowstone.
    For each 25 Zombies you kill, I'd like to reward a player with 50 glowstone.

    Problem 1.
    Is it possible to have this achievement repeat forever? Or will i be limited to 9999 times?
    (witch I guess, probably is enough)

    Problem 2.
    I have used Stats and Achievements for a while now, when I add new achievements,
    several of the players on my server have already killed hundreds of Zombies. And will get this achievements
    several times for Zombies killed earlier in the game. Is it possible to only reward players for Zombie kills
    happening after adding the new Achievement?


    Thanks. JI.
     
  29. Offline

    Scipione

    @Johniver perhaps have a look at ecoCreature for giving mob killing rewards.
    Only fix for your second Problem2 i know is setting the kill statistic to 0 in the database, so they start their killcounter by 0 again.
     
  30. Offline

    hofec

    I love this Plug as same as my pants ! [diamond]

    anyway nidefawl .. could you add a kill - player fature ? For example.. if someone will kill the player named "John", than he recieves some reward(s) :) (item,ban,kick maybe :D )
     
  31. Offline

    gilgatex

    Oh man you're using VARCHAR for the category and stat fields? You really should be using ENUM for efficiency.
     

Share This Page