Inactive [ECON] CookieMonster v1.6 - Money and Items for PvM [1240]

Discussion in 'Inactive/Unsupported Plugins' started by jascotty2, Apr 1, 2011.

  1. Offline

    jascotty2

    CookieMonster! - iConomy Money and Items for PvM
    Version: 1.6.6
    Download(static jar): CookieMonster.jar
    alternate download: CookieMonster_1.6.6.jar
    803-compatible: CookieMonster_1.3.4.jar
    684-compatible: CookieMonster 1.3.2.jar

    CookieMonster is now on BukkitDev


    This is a continuation of Coelho's initial CookieMonster Plugin
    CookieMonster is based off of the inactive iMonster, however uses none of the code from it,
    so it is more lightweight.


    Features:
    configurable item drops and economy reward for each monster
    configurable economy reward for items used to kill monsters
    also supports PvP
    Supports iConomy 4,5,6, BOSEcon 6,7, MultiCurrency, & EssentialsEco
    Ability to change entity drops with drop-rate.
    Ability to add minimum and maximum money drops for randomness
    A kill tracking system to check for spawn camping
    - define a square-radius for area to check, including max. elevation change, # of kills in this area, & timespan before an individual kill is no longer counted
    - anything over that number within the area will disable rewards until the records are old enough to be removed
    - so far, only lasts in server memory, so records are lost on server stop/reload


    doesn't allow to damage a creature/mobspawner if penalty is greater than account balance
    option to only drop items for a direct kill (stops autofarmers)
    option to replace normal drops with custom drops
    option to drop custom drops items globally
    configurable messages (including if there is no reward)
    can distingush charged from normal creepers, and tame/pet wolves from wild wolves
    can disable/enable rewards for defined regions
    - uses WorldEdit for selections


    Commands:
    /cookiemonster (cm) reload reloads settings from configuration file
    /cm region define <id> set a region (once a region is selected in worldedit)
    /cm region list [page] list regions (in current world if as a player)
    /cm region remove <id> to remove regions

    To-Do:
    ? import itemsDB from bettershop to check against config (check if valid items entered as drops)
    permissions? (for rewards & maybe permission to kill without penalty?)
    ?penalties/rewards for killing players in groups?


    Version 1.6.4 - 9/24/11
    • updated for mc 1.8
    • fixed custom drops occuring in disabled regions
    • updated register (fixes iConomy6 errors)
    Version 1.6.3 - 9/5/11
    • fixed a nullpointer error if a config node is missing
    Version 1.6.2 - 9/5/11
    • fixed global tracking errors
    • fixed some missing messsage errors
    • other code cleanup by nickrak
    Version 1.6.1 - 8/30/11
    • Arrow Kills fixed (was changed in bukkit 1060)
    Version 1.6 - 8/19/11
    • added PvP settings :)
      • more settings & messages accompany these additions
    Changelog (open)


    Version 1.5.1 - 8/9/11
    • added economy support via Register
      • now supports iConomy 4,5,6, BOSEcon 6,7, MultiCurrency, EssentialsEco
    • fixed unknown Material name.. not sure if was throwing errors
    Version 1.5.0.1 - 7/21/11
    • fixed worldedit not found error message
    • added ability to have WorldEdit in CookieMonster folder or lib folder if not otherwise installed
    Version 1.5 - 7/20/11
    • added a kill tracking system to check for spawn camping
      • define a square-radius for area to check, including max. elevation change, # of kills in this area, & timespan before an individual kill is no longer counted
      • anything over that number within the area will disable rewards until the records are old enough to be removed
      • so far, only lasts in server memory, so records are lost on server stop/reload
    • fixed anonymous replace/add drops setting
    • (hopefully) fixed a nullpointer exception in region checking
    Version 1.4 - 7/14/11
    • wolves updated for mc 1.6 (although appearent breaks didn't really seem to be broken, anyway...)
      • notibly, entities killed with wolves will reward the owner
    • fixed decimal reward if using older iConomy
    • added option to not clear drops before adding custom drops
    • added ability to disable for defined worlds
    • added regions (selections using worldguard, most code came from worldguard)
      • command to set (once a region is selected in worldedit) - /cm region define <id>
      • can list regions (in current world if as a player) - /cm region list [page]
      • then, to remove regions - /cm region remove <id>
      • default is to disable for these regions
        • on disabled worlds, regions will be enabled areas
      • alternatively, can be set to only be enabled in defined regions
    • "Wolf" has been replaced with "Wild_Wolf"
      • and added "Tame_Wolf" & "Pet_Wolf"
    • added "Charged_Creeper"
    Version 1.3.4 - 5/11/11
    • updated for iConomy 1.5 (1.4 compatiblity maintained :D)
    Version 1.3.3 - 4/27/11
    • Items are checked to be valid before added to drops list
    • updated wolves for 1.5
    Version 1.3.2 - 4/18/11
    • fixed default drops when onlyKillDrop enabled
    • added reload command
    Version 1.3.1 - 4/12/11
    • fixed player not dropping items if onlyKillDrop enabled
    Version 1.3 - 4/11/11
    • mobspawner destroy check fixed
    • BOSeconomy support added
    • added alwaysReplaceDrops option, so your custom drop always occur
    • support for no economy plugin added - so can just replace monster drops
    • configurable rewards for items used
    Version 1.2.1 - 4/8/11
    • custom messages for no reward added
    Version 1.2 - 4/8/11
    • fixed negative reward being added (not subtract)
    • added settings for config:
      • wholeNumberRewards: for rounding decimals to whole numbers
      • onlyKillDrop: entities only drop items if killed by a player
      • disableExpensiveKill: can't harm something that a player can't afford to kill
    Version 1.1 - 4/1/11
    • Configurable Messages
    • configuration file & format changed
    • can now reward/penalize any LivingEntity kill
    • custom drops replace normal drops, instead of adding to them
    • note: if you're getting "NoSuchMethodError: com.jascotty2.Rand.RandomDouble(DD)D", update BetterShop
    • (confusing, i know, but java is caching the older of the two versions of the same file)
    • kill handlers fixed for 600+
    • known fixes from 0.2:
    • no longer messes up the drop amount
    • drops are droped by the killed entity, not in front of the player
    • no more multi-rewards for killing the same entity
    Version 1.0 - 3/31/11

    Initial re-release, now maintained by jascotty2
    compatibility with 612


    -------- Coelho's versions --------
    Version 0.2:
    Fixed tuns of first-release bugs
    Version 0.1:
    Initial release
     
    .яιgнт, Roscoe55, Greylee and 2 others like this.
  2. Offline

    Nori_Silverrage

    I have been getting this error too. Anychance this'll be fixed?
     
  3. Offline

    Niemand

    maybe when its updated for b860. ;)
     
  4. Offline

    PatrickFreed

    Is there a way to disable iConomy drops from monsters spawned from monster spawners?
     
  5. Offline

    arsjet

    When did you update?
     
  6. Offline

    Maskur

    Somehow I don't get any money when killing a giant.

    I have this in my config file:

    Giant:
    coins: 50-100

    Edit: It seems like this issue is related to the NaturalGiant plugin I'm using :/
     
  7. Offline

    efstajas

    Could you add an option to disable CookieMonster with a command like /cookiemonster off?
     
  8. Offline

    musicin3d

    Hey! I love this plugin. I just killed my dog and got money for it though. :/ Can you separate wolves and tame wolves?
     
  9. Offline

    quickclay

    This error just started showing up and spamming my console in CB928. At a guess, it looks like anytime a wolf is nearby this is happening?
    Show Spoiler

    2011-06-24 10:47:07 [SEVERE] Could not pass event ENTITY_DAMAGE to CookieMonster
    java.lang.NoSuchMethodError: net.minecraft.server.EntityWolf.m_()Z
    at com.jynxdaddy.wolfspawn_04.UpdatedWolf.isTame(UpdatedWolf.java:47)
    at com.pi.coelho.CookieMonster.CMEntityListener.entDamage(CMEntityListener.java:53)
    at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDamage(CMEntityListener.java:35)
    at org.bukkit.plugin.java.JavaPluginLoader$55.execute(JavaPluginLoader.java:628)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.EntityWolf.a(EntityWolf.java:357)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
    at net.minecraft.server.EntityWolf.c_(EntityWolf.java:95)
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:702)
    at net.minecraft.server.EntityWolf.u(EntityWolf.java:141)
    at net.minecraft.server.EntityLiving.o_(EntityLiving.java:232)
    at net.minecraft.server.EntityWolf.o_(EntityWolf.java:169)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1142)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:49)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1124)
    at net.minecraft.server.World.cleanUp(World.java:1101)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  10. Offline

    quickclay

    No sign of life here. Going to have to remove the plugin until this is resolved.
     
  11. Offline

    Taemera

    Show Spoiler
    22:03:12 [SEVERE] Could not pass event ENTITY_DAMAGE to CookieMonster
    java.lang.NoSuchMethodError: net.minecraft.server.EntityWolf.m_()Z
    at com.jynxdaddy.wolfspawn_04.UpdatedWolf.isTame(UpdatedWolf.java:47)
    at com.pi.coelho.CookieMonster.CMEntityListener.entDamage(CMEntityListener.java:53)
    at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDamage(CMEntityListener.java:35)
    at org.bukkit.plugin.java.JavaPluginLoader$55.execute(JavaPluginLoader.java:628)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.EntityWolf.a(EntityWolf.java:357)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
    at net.minecraft.server.EntityWolf.c_(EntityWolf.java:95)
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:702)
    at net.minecraft.server.EntityWolf.u(EntityWolf.java:141)
    at net.minecraft.server.EntityLiving.o_(EntityLiving.java:232)
    at net.minecraft.server.EntityWolf.o_(EntityWolf.java:169)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1142)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:49)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1124)
    at net.minecraft.server.World.cleanUp(World.java:1101)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    928
     
  12. Offline

    quickclay

    Yup. That's the same one I posted. I see essentials 2.3.4 has modified wolf targeting. It may fix the issue, but not tested yet.

    EDIT: Problem persists in Essentials 2.3.4
     
  13. Offline

    darukas

    Is there a way to disable CookieMonster for specific cuboid? I have MobArena mod on my server and would love to keep both plugin's but I makes farming too easy for the players.
     
  14. Offline

    quickclay

  15. Offline

    Taemera

  16. Offline

    deshadowc

    Also getting this error spammed.
    Code:
    2011-06-27 20:13:50 [SEVERE] Could not pass event ENTITY_DAMAGE to CookieMonster
    java.lang.NoSuchMethodError: net.minecraft.server.EntityWolf.m_()Z
        at com.jynxdaddy.wolfspawn_04.UpdatedWolf.isTame(UpdatedWolf.java:47)
        at com.pi.coelho.CookieMonster.CMEntityListener.entDamage(CMEntityListener.java:53)
        at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDamage(CMEntityListener.java:35)
        at org.bukkit.plugin.java.JavaPluginLoader$55.execute(JavaPluginLoader.java:628)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at net.minecraft.server.EntityWolf.a(EntityWolf.java:357)
        at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
        at net.minecraft.server.EntityWolf.c_(EntityWolf.java:95)
        at net.minecraft.server.EntityLiving.u(EntityLiving.java:702)
        at net.minecraft.server.EntityWolf.u(EntityWolf.java:141)
        at net.minecraft.server.EntityLiving.o_(EntityLiving.java:232)
        at net.minecraft.server.EntityWolf.o_(EntityWolf.java:169)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1142)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:49)
        at net.minecraft.server.World.playerJoinedWorld(World.java:1124)
        at net.minecraft.server.World.cleanUp(World.java:1101)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  17. Offline

    quickclay

    Yeah that's the same some we've been experiencing since RB 928. Has something to do with how wolves are called out now. Had to finally disable this plugin.
     
  18. Offline

    xxdilbertxx

    Being spamed any time almost anything happens to or involving a wolf
    sorry to keep posting the same shit as every one else but.. the plugins bin doing it to me for a wile now so.....

    Code:
    11:23:45 [SEVERE] Could not pass event ENTITY_DAMAGE to CookieMonster
    java.lang.NoSuchMethodError: net.minecraft.server.EntityWolf.m_()Z
            at com.jynxdaddy.wolfspawn_04.UpdatedWolf.isTame(UpdatedWolf.java:47)
            at com.pi.coelho.CookieMonster.CMEntityListener.entDamage(CMEntityListener.java:53)
            at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDamage(CMEntityListener.java:35)
            at org.bukkit.plugin.java.JavaPluginLoader$55.execute(JavaPluginLoader.java:628)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
            at net.minecraft.server.EntityWolf.a(EntityWolf.java:357)
            at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
            at net.minecraft.server.EntityWolf.c_(EntityWolf.java:95)
            at net.minecraft.server.EntityLiving.u(EntityLiving.java:702)
            at net.minecraft.server.EntityWolf.u(EntityWolf.java:141)
            at net.minecraft.server.EntityLiving.o_(EntityLiving.java:232)
            at net.minecraft.server.EntityWolf.o_(EntityWolf.java:169)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1142)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:49)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1124)
            at net.minecraft.server.World.cleanUp(World.java:1101)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  19. Offline

    deshadowc

    Temporary fix is to use worldguard to disable wolves. Need a long term one.
     
  20. Offline

    jascotty2

    sorry, didn't want to release a half-working prototype, but here it is.. (until i get it finished..)

    this has the wolf thing fixed (removed the custom wolf class)
    kill tracking isn't finished (and electrified/tame untested), but there shouldn't be any debug messages: CookieMonster_1.4_beta.jar
     
  21. Offline

    Demonofbirth

    Does this have an option to set certain permission groups to have a multiplier?
     
  22. Offline

    deshadowc

    Can you add an option to not give iconomy/drops, if within x blocks of a mob spawner?
     
  23. Offline

    m5k

    Great job on the plugin, jascotty2. Could you perhaps add a single permission node that restricts who can receive the bonuses?
     
  24. Offline

    Thatpyrodude

    2011-07-01 02:16:47 [SEVERE] Could not load 'plugins\CookieMonster.jar' in folder 'plugins':
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    note this not the only plugin i have this prroblom with when it cant load
    think it has to do with essentials?
     
  25. Offline

    Ryannober

    Can Anyone Confirm if this works with b958?
     
  26. Offline

    Krapinou

    Doesn't work for 953 :/
     
  27. Offline

    jascotty2

    really? what error are you getting?

    when i tested, i found no problems
     
  28. Offline

    Krapinou

    Sorry i just donwload him in my /plugins folder and it works :)

    thank you, all of my server love you :D
     
  29. Offline

    efstajas

    I get that one really often:
    Code:
    23:44:44 [SEVERE] Could not pass event ENTITY_DAMAGE to CookieMonster
    java.lang.NoSuchMethodError: net.minecraft.server.EntityWolf.m_()Z
            at com.jynxdaddy.wolfspawn_04.UpdatedWolf.isTame(UpdatedWolf.java:47)
            at com.pi.coelho.CookieMonster.CMEntityListener.entDamage(CMEntityListener.java:53)
            at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDamage(CMEntityListener.java:35)
            at org.bukkit.plugin.java.JavaPluginLoader$55.execute(JavaPluginLoader.java:628)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
            at net.minecraft.server.EntityWolf.a(EntityWolf.java:339)
            at net.minecraft.server.EntityCreature.c_(EntityCreature.java:64)
            at net.minecraft.server.EntityWolf.c_(EntityWolf.java:92)
            at net.minecraft.server.EntityLiving.v(EntityLiving.java:685)
            at net.minecraft.server.EntityWolf.v(EntityWolf.java:133)
            at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
            at net.minecraft.server.EntityWolf.m_(EntityWolf.java:161)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1190)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1172)
            at net.minecraft.server.World.cleanUp(World.java:1102)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Just happens periodically, only when somebody is on, but nobody has to hit anything for it to occur.
    Build 935, Version 1.3.4 of CM.
     
    kahlilnc likes this.
  30. Offline

    Subleak

    I'm also seeing the:
    Code:
    Could not pass event ENTITY_DAMAGE to CookieMonster...
    ...at net.minecraft.server.EntityWolf.a(EntityWolf.java:339)
    ...
    Other then this its an excellent plugin. Thanks!
     
  31. Offline

    jascotty2

    i am still working on another release, but haven't finished.
     
    efstajas likes this.

Share This Page