[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

    Nideco

    Dear nidefawl,

    Have stats and achievements been updated to include the current Essentials economy? If so, then there still seems to be something wrong, because even though it now says 100$ is put in your account, X gave you $100, when I use /balance to see my balance, nothing has changed...
    Kind of sad, would have really liked to use Stats+Achs in combination with Essentials' economy.

    Hope that I'm just a moron who fscked something up technically, because you do say in the first post that Essentials is supported...
     
  3. Offline

    Guenael

    Hi, i have latest version of achievement and stats, all say it's ok now with iconomy and permissions , but what i must do to fix this problem ?

    Code:
    02:11:18 [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:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
        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)
    
     
  4. Offline

    Josh Ice

    @Guenael
    Are you sure you have the latest version?
    Try downloading it again.
    Did you get the newest craftbukkit build (#670).
    If not, get it. If yes, try reverting.
    Are you running on windows vista or later?
    If so then run your server as an administrator if possible.
    Hope this helps.
     
  5. Offline

    Guenael

    02:26:49 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-gb61ef8c-b670jnks (MC: 1.4)
    02:31:00 [INFO] [Stats-0.985] Using Nijis Permissions for permissions
    02:31:00 [INFO] [Stats-0.985] Plugin Enabled
    02:31:00 [INFO] [Achievements-0.981] Found required plugin: Stats
    02:31:00 [INFO] [Achievements-0.981] loaded 65 achievements definitions
    02:31:00 [INFO] [Achievements-0.981] Achievements 0.981 Plugin Enabled

    I run Ubuntu linux.
     
  6. Offline

    Josh Ice

    Well then this is an error in the code, are these the only plugins you run other than iConomy and Permissions? Even though it looks like it's an error between Nijis Permissions and iConomy. You might try Essentials instead of Permissions.
     
  7. Offline

    Guenael

    I use permission 2.1.10, you think it's problem ?
     
  8. Offline

    Josh Ice

  9. Offline

    Guenael

    All my plugins :)

    02:44:59 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-gb61ef8c-b670jnks (MC: 1.4)
    02:45:00 [INFO] [HeroicDeath] 1.7.2.147 enabled.
    02:45:00 [INFO] SupplySign version 1.2 is enabled!
    02:45:00 [INFO] [Minecart Mania] MinecartManiaCore version 1.09 is enabled!
    02:45:00 [INFO] SpawnX enabled
    02:45:01 [INFO] [Cookbook]: version [1.38] (Classy) loaded
    02:45:01 [INFO] [RealShop] version [0.59] (tickleman) loaded
    02:45:01 [INFO] [Permissions] version [2.6] (Phoenix) loaded
    02:45:01 [INFO] npcx : load settings (0.438) begun
    02:45:01 [INFO] [HeroChat] HeroChat version 4.8.11 enabled.
    02:45:01 [INFO] [Stats-0.985] Using Nijis Permissions for permissions
    02:45:01 [INFO] [Stats-0.985] Plugin Enabled
    02:45:01 [INFO] DropBonus v2.4 has been enabled.
    02:45:01 [INFO] [HeroSneak] 1.0.6.34 enabled.
    02:45:01 [INFO] Lockette version 1.3.4 is being enabled! Yay!
    02:45:01 [INFO] [Achievements-0.981] Achievements 0.981 Plugin Enabled
    02:45:01 [INFO] [AutoMessage] version [1.5] loaded
    02:45:01 [INFO] Loaded Essentials build 2.1.25 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    02:45:01 [INFO] namespace 1.3.5 enabled.
    02:45:01 [INFO] Remote Toolkit Plugin V0.31b enabled!
    02:45:01 [INFO] [BBROTHER] BigBrother 1.7.2-SNAPSHOT enabled
    02:45:01 [INFO] WorldEdit 4.3 enabled.
    02:45:02 [INFO] Dynmap WebServer started on null:8125
    02:45:02 [INFO] WorldGuard 5.0-alpha8 enabled.
    02:45:02 [INFO] [iConomy] Logging enabled.
    02:45:02 [INFO] nsonlinelist 0.1.2 enabled.
    02:45:02 [INFO] NSCompass 0.1.1 enabled.

    I don't see real problem with iconomy but that stuck totally my chest shop : realshop

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

    Josh Ice

    I started a conversation with you so we don't flood the thread. I will post the solution if it is found.
     
  11. Offline

    Guenael

    To the dev plugin here, the problem still here : i just launch, achievement+stats+iconomy (all last version) and i keep that : (CB670)

    Code:
    03:37:14 [INFO] Starting minecraft server version Beta 1.4
    03:37:14 [INFO] Loading properties
    03:37:14 [INFO] Starting Minecraft server on ...
    03:37:14 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-gb61ef8c-b670jnks (MC: 1.4)
    03:37:14 [INFO] Preparing level "Adelinoa_Village"
    03:37:14 [INFO] Preparing start region
    03:37:14 [INFO] 144 recipes
    03:37:15 [INFO] [Stats-0.985] Using bukkit's isOp() for permissions (until other plugin is enabled)
    03:37:15 [INFO] [Stats-0.985] Plugin Enabled
    03:37:15 [INFO] [Achievements-0.981] Found required plugin: Stats
    03:37:16 [INFO] [Achievements-0.981] loaded 65 achievements definitions
    03:37:16 [INFO] [Achievements-0.981] Achievements 0.981 Plugin Enabled
    03:37:16 [INFO] Memory max: 6546849792 bytes
    03:37:16 [INFO] Memory total: 3038773248 bytes
    03:37:16 [INFO] Remote Toolkit Plugin V0.31b enabled!
    03:37:16 [INFO] [iConomy] Logging enabled.
    03:37:16 [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:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
        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)
    03:37:16 [INFO] Done (0.144s)! For help, type "help" or "?"
    
    A good way to follow ? :

     
  12. Offline

    nidefawl

    Could you please try the following: open Achievements.jar with WinRar or some other tool
    edit META-INF/MANIFEST.MF so it looks like this:
    Code:
    Manifest-Version: 1.0
    Class-Path: Stats/lib/mysql.jar Stats/lib/sqlite.jar
    
    You can spam here :)

    Finally someone that posts all the information I need to fix it

    Will have a look at it

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

    Guenael


    Mine content :

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.1
    Created-By: 21.0-b02 (Oracle Corporation)
    Class-Path: Stats/lib/mysql.jar Stats/lib/sqlite.jar Stats.jar CraftIR
    C.jar GroupManager.jar iConomy.jar
     
  14. Offline

    68x

    Nidefawl, I did what you asked to do for Guenael.

    This is the same error:
    Code:
    2011-04-09 20:46:12 [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:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:285)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:196)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:596)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
     
  15. is there a German translation for archievement?

    greetings
    Chriss
     
  16. I am using an external sql database for the stats and achievements. Should I be worried that eventually the stats files will get big that it will cause performance loss in the MC server or for my sql database?
     
  17. Offline

    nidefawl

    Could you please try that build of Achievements: http://dev.craftland.org/Achievements_v0.982.zip

    I wanted you to change the Manifest file
    remove iConomy.jar from the class path and give it a try.

    If that fails plz try this build: http://dev.craftland.org/Achievements_v0.982.zip

    If that still fails it would be nice if you could send me a zip-file containing all your plugins/*.jar files
    Dont send me any configurations or folders

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

    Guenael

    v0.982 say that

    Code:
    22:30:52 [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:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
        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)
    
    MY PLUGINS :
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 15, 2016
  19. Offline

    68x

    That doesn't fix the error :(.
    Here are my plugins:
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 15, 2016
  20. Offline

    JaredKey

    1) I have mysql set up. What's the best way to reduce lag from this plugin? Should I set the update to every 10 seconds or 20 minutes? I'm wondering if a longer time, such as 20 minutes, is detrimental because of the large amoutnt of updates to be sent vs. Smaller more routine updates.

    2) I didn't see anywhere but is there a minimum to donate?
     
  21. Offline

    nidefawl

    1. I use something about 2 minutes for stats updater
    2. Any amount is welcome :)
     
  22. I am having a problem with this plugin, it was working fine and all of a sudden it has stopped. It is suppose to give out an achievement for joining the server, but after the 1 min wait time it doesn't. Please help.
     
  23. Offline

    nidefawl

    i guess its broken :O
     
  24. This works fine for me on CB#670 :)
    Stats 0.985 and Ach 0.981
     
  25. Offline

    Guenael

    Hello nidefawl.

    Some news about my problem ?

    thx
     
  26. Offline

    kazimir

    I really love your addon, but now i want to make a webinterface for achievements and stats.
    After looking at the database, i wanted to refactor the database for better seperation of different stats.
    So i forked your GIT, imported both projects to eclipse and tried to resolve all class errors.

    Is your GIT up-to-date and are all files commited? There are some classes missing...
    I took a screenshot, where you can see what i mean.

    ach.JPG

    kazimir
     
  27. Offline

    Guenael

    When i add new achievement or modify one and if I restart the server , people earn achievements already done, again, how i can do to prevent that?
     
  28. Offline

    Jdbye

    Doesn't work with the latest (at the moment 2.0 preview 11) CraftIRC version, gives this error and stops CraftIRC from loading:
    Code:
    2011-04-10 16:09:24 [SEVERE] tried to access method com.ensifera.animosity.craftirc.Minebot.<init>(Lcom/ensifera/anim.animosity.craftirc.CraftIRC loading CraftIRC v2.0 Preview 11 (Is it up to date?)
    java.lang.IllegalAccessError: tried to access method com.ensifera.animosity.craftirc.Minebot.<init>(Lcom/ensifera/ania.animosity.craftirc.CraftIRC
            at com.ensifera.animosity.craftirc.CraftIRC.onEnable(CraftIRC.java:130)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
            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)
    
     
  29. Offline

    X-lose

    First of all thx for that great plugin :)

    I wanted to ask you if there is a way that the stat for "how far a player has moved" dont count when a player uses a teleport command?

    Unfortunately the "blocks moved" stat gets totally worthless for me with everyone travelling thousands of blocks in a few seconds. Maybee you have a workaround or something for me.

    sry for my bad english...english is not my native language
     
  30. Offline

    jonathan edel

    where do i write the achievements ... i can find the examples but i dont know where to put my achievements
     
  31. Offline

    tha d0ctor

    achievements.txt... ^^^

    would it be it be possible the have any achievement type based off a chat listener and have achievements for different keywords.

    so if someone types snooki in the server chat the server can be like "Oh I like the jersey shore too +500 coin for being cool"
     

Share This Page