[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

    brafenschlug

    Ran some debugging today and noticed that the dispenser is misspelled, now it says "dispsner"
     
  3. Offline

    Vaupell

    +1 same on build 402
     
  4. Offline

    Tunaaja

    Problems with newest Craftbukkit:

    2011-02-21 06:24:26 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-435-gc18627d-b403jnks (MC: 1.2_01)

    2011-02-21 06:24:29 [INFO] [Stats-0.52] Using Nijis Permissions for permissions
    2011-02-21 06:24:29 [SEVERE] 21.2.2011 6:24:29 org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: ENTITY_DAMAGEDBY_BLOCK (Is it up to date?)
    java.lang.NoSuchFieldError: ENTITY_DAMAGEDBY_BLOCK
    at com.nidefawl.Stats.Stats.initialize(Stats.java:631)
    at com.nidefawl.Stats.Stats.onEnable(Stats.java:573)
    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:74)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:179)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:166)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:217)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  5. Offline

    SiDeFX

    I'am having the exact same issue. I was trying to get the Achievements Plugin working, guess it wont load properly because of this.
     
  6. Offline

    jududdar

    For anybody trying to get the WebStats thing working in the Tools section of the OPs post - make sure you set this in your php.ini file:
    Code:
    short_open_tag = On
    I didn't at first, and well.. it took a few for it to occur to me.
     
  7. Offline

    crazydog

    Same exact issue here. CraftBukkit 415

    The event needs to be replaced. See:
    http://forums.bukkit.org/threads/oops-i-broke-your-plugins.599/#post-67424

    I'd attempt to fix it but the source isn't available. :-(
     
  8. Offline

    sli

    I'll disassemble the plugins and attempt to fix them.

    EDIT: Or maybe not. JAD isn't able to decompile StatsEntityListener nicely. I'll give it a shot, regardless.

    EDIT 2: Ehhh... I think it might be best to just light a fire under nidefawl's ass. I haven't kept up on the API like I should have.
     
  9. Offline

    crazydog

    Well, it's been less than a week since the last update, so it's not like he hasn't done anything on it in a while. I'm sure he'll get it updated soon. :D
     
  10. Offline

    sli

    Ah, good catch. I didn't think to check when it was last updated.
     
  11. Offline

    scar413

    looking forward to the 1.3 update
     
    Oscarius likes this.
  12. Offline

    Wulfspider

    With Craftbukkit 424 and Stats 0.53 and Achievements 0.54:

    Code:
    2011-02-23 18:20:54 [SEVERE] Could not pass event PLAYER_DROP_ITEM to Stats
    java.lang.NullPointerException
            at org.bukkit.craftbukkit.entity.CraftItem.getItemStack(CraftItem.java:1
    7)
            at com.nidefawl.Stats.StatsPlayerListener.onPlayerDropItem(StatsPlayerLi
    stener.java:164)
            at org.bukkit.plugin.java.JavaPluginLoader$16.execute(JavaPluginLoader.j
    ava:205)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
            at net.minecraft.server.EntityHuman.a(EntityHuman.java:262)
            at net.minecraft.server.EntityHuman.y(EntityHuman.java:222)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:276)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            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-23 18:20:56 [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to Stats
    java.lang.NullPointerException
            at org.bukkit.craftbukkit.entity.CraftItem.getItemStack(CraftItem.java:1
    7)
            at com.nidefawl.Stats.StatsPlayerListener.onPlayerPickupItem(StatsPlayer
    Listener.java:214)
            at org.bukkit.plugin.java.JavaPluginLoader$17.execute(JavaPluginLoader.j
    ava:210)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
            at net.minecraft.server.EntityItem.b(EntityItem.java:201)
            at net.minecraft.server.EntityHuman.i(EntityHuman.java:194)
            at net.minecraft.server.EntityHuman.q(EntityHuman.java:186)
            at net.minecraft.server.EntityPlayer.q(EntityPlayer.java:186)
            at net.minecraft.server.EntityLiving.f_(EntityLiving.java:229)
            at net.minecraft.server.EntityHuman.f_(EntityHuman.java:82)
            at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:143)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:207)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            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)
     
  13. Offline

    Vaupell

    Well this plugin havent been working "proberly" since around 346 builds. so almost 100 builds ago ;)
     
  14. Offline

    Liger_XT5

    Updated, check main post.
     
  15. Offline

    scar413

    seems to work without problems. big thanks!

    and a little request. i want to switch from iConomy to EssentialsEco for points/money per achievement. would be awesome to see it implemented.
     
  16. Offline

    CzarRazc

    anyone have achievment list with money(Iconomy) rewards that want to share? :)
     
  17. Offline

    Kayonesoft

    I made this awhile back during one of the earlier versions, so it may need some updating and fixing of stuff that has changed. Feel free to use whatever you want.
    Code:
    ################################# Achievements #################################
    #############################
    ####### BLOCK CREATE ########
    #############################
    1:&6[Trinitrotoluene]&3:1:blockcreate:tnt:1:Wait, what are you doing with that?:money 10
    1:&6[Laying Down the Foundation]&3:1:blockcreate:wood:10:Placed 10 Wood blocks.:item torch 10
    1:&6[He Who Lives in a Glass House...]&3:1:blockcreate:glass:10:Placed 10 Glass blocks.:money 10
    1:&6[Lighting the Path]&3:1:blockcreate:torch:10:Placed 10 Torches.:money 10
    1:&6[Maestro]&3:1:blockcreate:music:10:Placed 10 Note blocks.:money 10
    1:&6[Sandopolis]&3:1:blockcreate:sand:10:Placed 10 Sand blocks.:money 10
    1:&6[Maestro]&3:1:blockcreate:music:10:Placed 10 Note Blocks.:money 10
    1:&6[A Rose By Any Other Name]&3:1:blockcreate:rose:12:Placed a dozen Roses.:money 10
    1:&6[Walk Like an Egyptian]&3:1:blockcreate:sandstone:10:Placed 10 Sandstone blocks.:money 10
    1:&6[Order Up!]&3:1:blockcreate:dispenser:10:Placed 10 Dispenser blocks.:money 10
    1:&6[Higher Learning]&3:1:blockcreate:bookshelf:10:Placed 10 Bookshelves.:money 10
    1:&6[Trees and Thank You]&3:1:blockcreate:sapling:1:Planted a tree. Good for you!:money 10
    1:&6[Reforestation]&3:1:blockcreate:sapling:100:Planted 100 trees.:money 10
    1:&6[Home Sweet Home]&3:1:blockcreate:painting:1:Planted a painting.:money 10
    1:&6[Do This, Don't Do That]&3:1:blockcreate:sign:10:Placed 10 signs.:money 10
    #############################
    ####### BLOCK DESTROY #######
    #############################
    1:&6[Global Warming]&3:1:blockdestroy:log:5:Destroyed a tree.:item sapling 1
    1:&6[Apprentice Logger]&3:1:blockdestroy:log:50:Cut down 50 logs.:money 10
    1:&6[Apprentice Miner]&3:1:blockdestroy:stone:50:Dug out 50 Stone blocks.:money 10
    1:&6[Apprentice Digger]&3:1:blockdestroy:dirt:50:Dug up 50 Dirt blocks.:money 10
    1:&6[Sandcastle Crashers]&3:1:blockdestroy:sand:50:Dug up 50 Sand blocks.:money 10
    1:&6[Journeyman Logger]&3:1:blockdestroy:log:500:Cut down 500 logs.:money 10
    1:&6[Journeyman Miner]&3:1:blockdestroy:stone:500:Dug out 500 Stone blocks.:money 10
    1:&6[Journeyman Digger]&3:1:blockdestroy:dirt:500:Dug up 500 Dirt blocks.:money 10
    1:&6[Expert Logger]&3:1:blockdestroy:log:5000:Cut down 5k logs.:money 100
    1:&6[Expert Miner]&3:1:blockdestroy:stone:5000:Dug out 5k Stone blocks.:money 100
    1:&6[Expert Digger]&3:1:blockdestroy:dirt:5000:Dug up 5k Dirt blocks.:money 100
    1:&6[Artisan Logger]&3:1:blockdestroy:log:50000:Cut down 50k logs.:money 100
    1:&6[Artisan Miner]&3:1:blockdestroy:stone:50000:Dug out 50k Stone blocks.:money 100
    1:&6[Artisan Digger]&3:1:blockdestroy:dirt:50000:Dug up 50k Dirt blocks.:money 100
    1:&6[Master Logger]&3:1:blockdestroy:log:500000:Cut down 500k logs.:money 1000
    1:&6[Master Miner]&3:1:blockdestroy:stone:500000:Dug out 500k Stone blocks.:money 1000
    1:&6[Master Digger]&3:1:blockdestroy:dirt:500000:Dug up 500k Dirt blocks.:money 1000
    1:&6[Grand Master Logger]&3:1:blockdestroy:log:5000000:Cut down 5m logs.:money 1000
    1:&6[Grand Master Miner]&3:1:blockdestroy:stone:5000000:Dug out 5m Stone blocks.:money 1000
    1:&6[Grand Master Digger]&3:1:blockdestroy:dirt:5000000:Dug up 5m Dirt blocks.:money 1000
    1:&6[Illustrious Logger]&3:1:blockdestroy:log:50000000:Cut down 50m logs.:money 1000
    1:&6[Illustrious Miner]&3:1:blockdestroy:stone:50000000:Dug out 50m Stone blocks.:money 1000
    1:&6[Illustrious Digger]&3:1:blockdestroy:dirt:50000000:Dug up 50m Dirt blocks.:money 1000
    1:&6[World Renowned Logger]&3:1:blockdestroy:log:500000000:Cut down 500m logs.:money 10000
    1:&6[World Renowned Miner]&3:1:blockdestroy:stone:500000000:Dug out 500m Stone blocks.:money 10000
    1:&6[World Renowned Digger]&3:1:blockdestroy:dirt:500000000:Dug up 500m Dirt blocks.:money 10000
    1:&6[Dungeon Runner]&3:1:blockdestroy:mossy:10:Dug out 10 Mossy Cobblestone blocks.:item ironhelmet
    1:&6[Heroic Dungeon Runner]&3:1:blockdestroy:mossy:50:Dug out 50 Mossy Cobblestone blocks.:item diamondhelmet
    1:&6[Raider]&3:1:blockdestroy:mossy:100:Dug out 100 Mossy Cobblestone blocks.:item ironpants
    1:&6[Heroic Raider]&3:1:blockdestroy:mossy:200:Dug out 200 Mossy Cobblestone blocks.:item diamondpants
    1:&6[Raid Leader]&3:1:blockdestroy:mossy:500:Dug out 500 Mossy Cobblestone blocks.:item ironchestplate
    1:&6[Heroic Raid Leader]&3:1:blockdestroy:mossy:1000:Dug out 1000 Mossy Cobblestone blocks.:item diamondchestplate
    #############################
    ####### DAMAGE DEALT ########
    #############################
    #
    #############################
    ####### DAMAGE TAKEN ########
    #############################
    1:&6[It Looked Much Closer]&3:1:damagetaken:FALL:20:You took fall damage.:money 10
    1:&6[Just Wanted a Hug]&3:1:damagetaken:Creeper:1:Hugged a lonely Creeper.:item apple 1
    #############################
    ########## DEATHS ###########
    #############################
    1:&6[Don't Stand In Fire!]&3:1:deaths:fire:1:Died in fire.:money 10
    1:&6[It's Dangerous to Go Alone]&3:1:deaths:total:1:Died once.:item woodsword 1
    1:&6[It was Lag! I swear!]&3:1:deaths:total:10:Died 10 times.::money 10
    1:&6[Phoenix Downed]&3:1:deaths:total:100:Died 100 times.:money 10
    1:&6[AAAAAAAAAHHHHHHH!]&3:1:deaths:FALL:1:You made quite the mess, didn't you?:money 10
    1:&6[Creepers on My Roof!]&3:1:deaths:Creeper:1:Killed by a Creeper.:money 10
    1:&6[Boned]&3:1:deaths:Skeleton:1:Killed by a Skeleton.:money 10
    1:&6[STTTAARRRRSSSSS]&3:1:deaths:Zombie:1:Killed by a Zombie.:money 10
    1:&6[Venom Strike!]&3:1:deaths:Spider:1:Killed by a Spider.:money 10
    1:&6[Waterworld]&3:1:deaths:DROWNING:1:Drowned.:money 10
    1:&6[Short Fuse]&3:1:deaths:tnt:1:Died from TNT.:money 10
    #############################
    ######### ITEM DROP #########
    #############################
    1:&6[Garbage]&3:1:itemdrop:gravel:50:Got rid of 50 Gravel blocks.:money 10
    #############################
    ######## ITEM PICKUP ########
    #############################
    1:&6[Baconator]&3:1:itempickup:pork:5:Picked up some raw pork.:money 10
    1:&6[Wolf in Sheep's Clothing]&3:1:itempickup:cloth:5:Picked up 5 cloth.:money 10
    1:&6[Stoned]&3:1:itempickup:cobblestone:500:Aquired 500 Cobblestone.:item ironpickaxe
    1:&6[Apprentice Farmer]&3:1:itempickup:wheat:50:Harvested up 50 Wheat.:money 10
    1:&6[Journeyman Farmer]&3:1:itempickup:wheat:500:Harvested up 500 Wheat.:money 10
    1:&6[Expert Farmer]&3:1:itempickup:wheat:5000:Harvested up 5k Wheat.:money 100
    1:&6[Artisan Farmer]&3:1:itempickup:wheat:50000:Harvested up 50k Wheat.:money 100
    1:&6[Master Farmer]&3:1:itempickup:wheat:500000:Harvested up 500k Wheat.:money 1000
    1:&6[Grand Master Farmer]&3:1:itempickup:wheat:5000000:Harvested up 5m Wheat.:money 1000
    1:&6[Illustrious Farmer]&3:1:itempickup:wheat:50000000:Harvested up 50m Wheat.:money 1000
    1:&6[World Renowned Farmer]&3:1:itempickup:wheat:500000000:Harvested up 500m Wheat.:money 10000
    #############################
    ########### KILLS ###########
    #############################
    1:&6[Take That!]&3:1:kills:total:1:Killed 1 monster.:money 10
    1:&6[And That!]&3:1:kills:total:10:Killed 10 monsters.:money 10
    1:&6[And One of These!]&3:1:kills:total:100:Killed 100 monsters.:money 100
    1:&6[There Are Zombies On My Lawn]&3:1:kills:Zombie:5:Killed 5 zombies. More will come, take this...:item flower 5
    1:&6[Boneless]&3:1:kills:Skeleton:5:Killed 5 Skeletons.:money 10
    1:&6[Friendly Neighborhood...]&3:1:kills:Spider:5:Killed 5 spiders.:money 10
    1:&6[FIRST BLOOD]&3:1:kills:player:1:Killed another player.:item ironsword 1
    1:&6[Scout]&3:1:kills:player:10:Killed 10 players.:money 10
    1:&6[Grunt]&3:1:kills:player:20:Killed 20 players.:money 20
    1:&6[Guard]&3:1:kills:player:30:Killed 30 players.:money 30
    1:&6[Captain]&3:1:kills:player:40:Killed 40 players.:money 40
    1:&6[Knight]&3:1:kills:player:50:Killed 50 players.:money 50
    1:&6[Legionnaire]&3:1:kills:player:60:Killed 60 players.:money 60
    1:&6[Centurion]&3:1:kills:player:70:Killed 70 players.:money 70
    1:&6[Champion]&3:1:kills:player:80:Killed 80 players.:money 80
    1:&6[Warlord]&3:1:kills:player:90:Killed 90 players.:money 90
    1:&6[Reaper]&3:1:kills:player:100:Killed 100 players.:money 100
    #############################
    ########### STATS ###########
    #############################
    ####################
    ##### ARMSWING #####
    ####################
    1:&6[Left Hook]&3:1:stats:armswing:1:Threw a punch.:item woodpickaxe 1
    1:&6[Epic Flail!]&3:1:stats:armswing:1000:Swung your arm 1000 times.:money 10
    ####################
    ####### BAN ########
    ####################
    #
    ####################
    ### CHAT LETTERS ###
    ####################
    1:&6[Twit]&3:1:stats:chatletters:140:Awarded for typing 140 characters in chat. Go back to  Twitter.:money 10
    1:&6[Gabby]&3:1:stats:chatletters:100000:Awarded for typing 100k characters in chat.:money 500
    ####################
    ##### COMMAND ######
    ####################
    
    #
    ####################
    ## DAMAGE HEALED ###
    ####################
    #
    ####################
    ###### IP BAN ######
    ####################
    #
    ####################
    ####### KICK #######
    ####################
    #
    ####################
    ###### LOGIN #######
    ####################
    1:&6[Server First!]&3:1:stats:login:1:You have logged in for the first time!:item woodaxe 1
    1:&6[SERVER FIRST!!]&3:1:stats:login:2:You came back! We didn't scare you away.:money 10
    0:&6[Friday Night Zombie Fright]&3:1:stats:login:1:Logged in during the Zombie event.:item diamondsword
    ####################
    ####### MOVE #######
    ####################
    1:&6[Baby Steps]&3:1:stats:move:10:Congratulations! You've taken your first steps!:item woodshovel 1
    1:&6[Well Traveled]&3:1:stats:move:10000:Walked 10,000 steps.:item leatherboots 1
    1:&6[Marathon Runner]&3:1:stats:move:100000:Walked 100,000 steps.:item ironboots 1
    1:&6[Map Explorer]&3:1:stats:move:1000000:Walked 1,000,000 steps.:item diamondboots 1
    1:&6[These Boots Were Made For Walkin']&3:1:stats:move:10000000:Walked 10,000,000 steps.:money 1000
    ####################
    #### PLAYED FOR ####
    ####################
    1:&6[Hooked]&3:1:stats:playedfor:144000:Logged 40 hours.:money 100
    ####################
    ##### TELEPORT #####
    ####################
    Note: My iconomy currency values are fairly low because I have the shop prices set at a fairly low rate. Again, it may stand to need some adjusting.
     
  18. Offline

    Daveyo

    1:&6[World Renowned Logger]&3:1:blockdestroy:log:500000000:Cut down 500m logs.:money 10000

    really
     
  19. Offline

    KiPiCoOl

    Hi

    On starting server (craftbukkit #431 to 435 tested)

    And some java.sql.SQLException: NYI when players play
     
  20. Offline

    Fuzzylightning

    Hi there, we're noticing a conflict with CraftIRC 1.70d when running CraftBukkit build #432, the awesome hooking feature is unfortunately breaking CraftIRC altogether. :( This will be an Achievements problem. The worst part of this is that this error occurs quite early on, and halts loading of all other plugins.

    We're also noticing error messages to do with Stats every time BlockPickup events are run.

    We're using v0.53 and v0.54 of Stats and Achievements respectively. Hope you can fix these errors.
     
  21. Offline

    CyborgOne

    i found this error in my log

    Code:
    [SERVER] java.lang.NullPointerException
    [SERVER]        at org.bukkit.craftbukkit.entity.CraftItem.getItemStack(CraftItem.java:17)
    [SERVER]        at com.nidefawl.Stats.StatsPlayerListener.onPlayerPickupItem(StatsPlayerListener.java:214)
    [SERVER]        at org.bukkit.plugin.java.JavaPluginLoader$17.execute(JavaPluginLoader.java:210)
    [SERVER]        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    [SERVER]        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    [SERVER]        at net.minecraft.server.EntityItem.b(EntityItem.java:201)
    [SERVER]        at net.minecraft.server.EntityHuman.i(EntityHuman.java:195)
    [SERVER]        at net.minecraft.server.EntityHuman.q(EntityHuman.java:187)
    [SERVER]        at net.minecraft.server.EntityPlayer.q(EntityPlayer.java:189)
    [SERVER]        at net.minecraft.server.EntityLiving.f_(EntityLiving.java:230)
    [SERVER]        at net.minecraft.server.EntityHuman.f_(EntityHuman.java:82)
    [SERVER]        at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:146)
    [SERVER]        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:209)
    [SERVER]        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    [SERVER]        at net.minecraft.server.NetworkManager.a(SourceFile:230)
    [SERVER]        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    [SERVER]        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    [SERVER]        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    [SERVER]        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    [SERVER]        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    

    CB #436 (24.02.2011)
    stats v0.53
     
  22. Offline

    Wulfspider

    I had to remove Stats 0.53 as it was breaking a few of my other plugins such as DeathTpPlus and Tombstone. Running Craftbukkit 432.
     
  23. Offline

    kipz0r

    When I enable Achievements v0.54 then it breaks CraftIRC v1.70d BETA
    Code:
    2011-02-24 12:11:30 [SEVERE] 2011-02-24 12:26:14 [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(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	... 13 more
    
    
    When Achievements is not loaded I don't get this error, any idea why?


    Cheers, kip.

    edit: when I load CraftIRC before achievements, then achievements won't display achievements and give me an error on the console after typing /ach ingame:
    Code:
    2011-02-24 12:23:46 [SEVERE] [Achievements-0.54] SQL exception
    java.sql.SQLException: The url cannot be null
    	at java.sql.DriverManager.getConnection(DriverManager.java:554)
    	at java.sql.DriverManager.getConnection(DriverManager.java:185)
    	at com.nidefawl.Achievements.Achievements.getSQLConnection(Achievements.java:142)
    	at com.nidefawl.Achievements.PlayerAchievementSQL.load(PlayerAchievementSQL.java:63)
    	at com.nidefawl.Achievements.Achievements.load(Achievements.java:344)
    	at com.nidefawl.Achievements.Achievements.onCommand(Achievements.java:368)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
    	at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:633)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:596)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:590)
    	at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    	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:253)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    Then when I tried /reloadach, I got the following error:
    Code:
    2011-02-24 12:24:54 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'reloadach' in plugin Achievements v0.54
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:21)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
    	at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:633)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:596)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:590)
    	at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    	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:253)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: 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 com.nidefawl.Achievements.Achievements.onCommand(Achievements.java:402)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
    	... 12 more
    
    and that broke my server, when I tried to do /reload

    Code:
    2011-02-24 12:25:55 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing 'reload' in [email protected]
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:81)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
    	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:362)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:347)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
    	at com.nidefawl.Stats.Stats.get(Stats.java:790)
    	at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements.java:283)
    	at com.nidefawl.Achievements.Achievements.onDisable(Achievements.java:214)
    	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:142)
    	at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:441)
    	at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
    	at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:193)
    	at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:206)
    	at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:193)
    	at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:189)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    	... 5 more
    
    I'm running Craftbukkit #435
    Plugins: Permissions, BorderGuard, WorldEdit, WorldGuard, iChat, CraftIRC, BigBrother, Stats and Achievements
    All the latest version.
     
  24. Offline

    Oscarius

    I'm getting errors when using Achievements commands.

    (Bottom-to-top)
    Code:
    24.02 13:09:58 [Server] INFO     ... 12 more
    24.02 13:09:58 [Server] INFO     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
    24.02 13:09:58 [Server] INFO     at com.nidefawl.Achievements.Achievements.onCommand(Achievements.java:364)
    24.02 13:09:58 [Server] INFO     at com.nidefawl.Achievements.Achievements.Stats(Achievements.java:81)
    24.02 13:09:58 [Server] INFO     at com.nidefawl.Achievements.Achievements.CheckStatsPlugin(Achievements.java:76)
    24.02 13:09:58 [Server] INFO Caused by: java.lang.ClassCastException: com.nidefawl.Stats.Stats cannot be cast to com.nidefawl.Stats.Stats
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.NetworkManager.a(SourceFile:230)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:590)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:596)
    24.02 13:09:58 [Server] INFO     at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:633)
    24.02 13:09:58 [Server] INFO     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
    24.02 13:09:58 [Server] INFO     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    24.02 13:09:58 [Server] INFO     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:21)
    24.02 13:09:58 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'ach' in plugin Achievements v0.54
    24.02 13:09:58 [Server] SEVERE null
     
  25. Offline

    kipz0r

    Are you sure that stats is running. e.g. is /stats working?
     
  26. Offline

    Oscarius

    Yes, /stats is working fine. /ach returns the error message "An internal error occured while attempting to perform this command" and gives the error message posted above in console.
    The achievement plugin itself is working though and achievements are recorded to the database.

    EDIT: Updated to CB 432 and its now working.
     
  27. Offline

    CyborgOne

    the current versions S 0.53/A 0.54 with CB 436 seems to be ok

    but i've got another question about the achievements.txt
    There you can say how often a "quest" can be done. the max value in the generator seems to be 9999. it should be enough but isn't it possible to say anyway that the "quest" is usable endless?
     
  28. Offline

    nidefawl

  29. Offline

    CyborgOne

    ? and what influence has craftirc with stats and achievements ?
    i think i didn't use it, should i?
     
  30. Offline

    Kayonesoft

    Well it's not like you're trying to earn every achievement in 20 minutes. :p There's a 500million Dirt, Stone and Wheat one too.
     
  31. Offline

    CyborgOne

    yea i know, but i want to give the player a "bonus" if he perhaps kills 20 creeper he gets 10 coins extra or sth like that. and... that should work all the time, and not stop working after 10 times
     

Share This Page