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

    jascotty2

    sorry i hadn't released yet.. was trying to get caught up in a class before the end of the semester & didn't want to release this untested
    not as tried as i'd liked it to have been, but here it is:

    Version 1.3.4
    updated for iConomy 1.5 (1.4 compatiblity maintained :D)

    (other work is postponed until i'm finished with a few last assignments)
     
  3. Offline

    jasvecht

    Odd, I installed it and it gives no error message but also no drops or anything, despite having iConomy 5 functioning and reload working :\
     
  4. Offline

    heronfarm

    Another (minor) bug with the latest release is the wholeNumberRewards flag is not being honored. That is to say, when set to true decimals (X.00) are still shown in the rewards message.

    Thanks!
     
  5. Offline

    jasvecht

    And actually, it does give an error, I just missed it.

    On start:

    2011-05-12 23:41:15 [SEVERE] com/nijiko/coelho/iConomy/iConomy loading CookieMonster v1.3.3 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at com.pi.coelho.CookieMonster.CMEcon.initEcon(CMEcon.java:26)
    at com.pi.coelho.CookieMonster.CookieMonster.onEnable(CookieMonster.java:34)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 12 more
     
  6. Offline

    Cloudkiss

    Thank you for update!
    When do you next update for bukkit 766?
     
  7. Offline

    marco213

    I figure it out that CookieMonster has the same shortcut as CustumMusic. Did he have a way that we can change it? cuz i still love both of plugin :(
     
  8. Offline

    Meiun

    change or remove the aliases in the plugin
     
  9. Offline

    Nitnelave

    Just wondering, haven't tested though, if a creeper gets killed by a skeleton arrow, does it still drop a music disc? even with AlwaysReplaceDrops?
     
  10. Offline

    jascotty2

    if you have custom drops defined, no.. but i have plans to make the drops optionally extra, as they once were
    (making them additional to the natural droppings)
     
  11. Offline

    quickclay

    I get the following error with CB766, essentials 2.2.17.. this is using the essentialsIconomyBridge for 1.4.

    2011-05-16 07:03:22 [SEVERE] [CookieMonster] Unexpected Error processing Reward
    java.lang.NullPointerException
    at org.yaml.snakeyaml.emitter.Emitter.expectNode(Emitter.java:399)
    at org.yaml.snakeyaml.emitter.Emitter.access$1600(Emitter.java:64)
    at org.yaml.snakeyaml.emitter.Emitter$ExpectDocumentRoot.expect(Emitter.java:373)
    at org.yaml.snakeyaml.emitter.Emitter.emit(Emitter.java:216)
    at org.yaml.snakeyaml.serializer.Serializer.serializeNode(Serializer.java:177)
    at org.yaml.snakeyaml.serializer.Serializer.serializeNode(Serializer.java:203)
    at org.yaml.snakeyaml.serializer.Serializer.serialize(Serializer.java:114)
    at org.yaml.snakeyaml.representer.BaseRepresenter.represent(BaseRepresenter.java:68)
    at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:221)
    at org.yaml.snakeyaml.Yaml.dump(Yaml.java:205)
    at org.bukkit.util.config.Configuration.save(Configuration.java:103)
    at com.earth2me.essentials.UserData.setMoney(UserData.java:86)
    at com.earth2me.essentials.User.setMoney(User.java:313)
    at com.earth2me.essentials.api.Economy.setMoney(Economy.java:98)
    at com.earth2me.essentials.api.Economy.add(Economy.java:111)
    at com.nijiko.coelho.iConomy.system.Account.add(Account.java:67)
    at com.pi.coelho.CookieMonster.CMEcon.addMoney(CMEcon.java:74)
    at com.pi.coelho.CookieMonster.CMRewardHandler.GivePlayerCoinReward(CMRewardHandler.java:78)
    at com.pi.coelho.CookieMonster.CMRewardHandler.GivePlayerCoinReward(CMRewardHandler.java:18)
    at com.pi.coelho.CookieMonster.CMEntityListener$MonsterAttack.rewardKill(CMEntityListener.java:127)
    at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDeath(CMEntityListener.java:101)
    at org.bukkit.plugin.java.JavaPluginLoader$48.execute(JavaPluginLoader.java:524)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.EntityLiving.r(EntityLiving.java:470)
    at net.minecraft.server.EntityLiving.a(EntityLiving.java:449)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:393)
    at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:47)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:532)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:815)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    Also, here's my startup for Cookiemonster:
    2011-05-16 07:02:34 [INFO] [CookieMonster] Attached to iConomy.
    2011-05-16 07:02:34 [INFO] [CookieMonster] v1.3.4 loaded successfully.
    2011-05-16 07:02:34 [INFO] [CookieMonster] Developed by: [jascotty2, Coelho]
     
  12. Offline

    Nitnelave

    Well, mine's pretty much the same, but the lines don't look the same... I don't know what happened, I just saw it in the log (there was someone on the server at the time):
    Show Spoiler
    [CookieMonster] Unexpected Error processing Reward
    java.lang.IllegalArgumentException: Illegal group reference
    at java.util.regex.Matcher.appendReplacement(Matcher.java:725)
    at java.util.regex.Matcher.replaceAll(Matcher.java:823)
    at java.lang.String.replaceAll(String.java:2201)
    at com.pi.coelho.CookieMonster.CMRewardHandler.GivePlayerCoinReward(CMRewardHandler.java:79)
    at com.pi.coelho.CookieMonster.CMRewardHandler.GivePlayerCoinReward(CMRewardHandler.java:18)
    at com.pi.coelho.CookieMonster.CMEntityListener$MonsterAttack.rewardKill(CMEntityListener.java:127)
    at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDeath(CMEntityListener.java:101)
    at org.bukkit.plugin.java.JavaPluginLoader$48.execute(JavaPluginLoader.java:524)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.EntityLiving.r(EntityLiving.java:470)
    at net.minecraft.server.EntityLiving.a(EntityLiving.java:449)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:393)
    at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:47)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:532)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:815)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    with iconomy 5.0.1, CB 766
     
  13. Offline

    BloodyDie

    Update To 779 I'm Need This
     
  14. Offline

    Nitnelave

    any update in view?
    CB:803
     
  15. Offline

    Meiun

    its working for me and i run 803. it was working in 766 too. you may have something in your config wrong or there may have been an undocumented update.

    1.3.4 works.
     
  16. Offline

    arsjet

    Bukkit823
    Code:
    19:14:17 [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(CMEntityListen
    er.java:53)
            at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDamage(CMEntityL
    istener.java:35)
            at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.j
    ava:570)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:415)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:162)
    
            at net.minecraft.server.EntityWolf.a(SourceFile:382)
            at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
            at net.minecraft.server.EntityWolf.c_(SourceFile:129)
            at net.minecraft.server.EntityLiving.u(EntityLiving.java:692)
            at net.minecraft.server.EntityWolf.u(SourceFile:164)
            at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231)
            at net.minecraft.server.EntityWolf.o_(SourceFile:194)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1071)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:5
    6)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1053)
            at net.minecraft.server.World.cleanUp(World.java:1030)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:395)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    If attacked by a wolf, get this error.
     
  17. Offline

    jascotty2

    sorry, forgot to update with 1.6... i'll get right on that :)
     
  18. Offline

    BladeTec

    Tested with Bukkit 818, everything works fine ! (Using 1.3.4) Thanks alot ! Life saver !!!
     
  19. Offline

    DJ_Idol

    Is there any chance you would be able to add permissions support? A simple cookiemonster.use node would be excellent :)
     
    GayJuice likes this.
  20. Offline

    link2110

    Is this compatible with iConomy 5.x? I have multiple servers, one that runs iConomy 4.x and the other that runs 5.x and the server running 5.x doesnt give money or drops, but the 4.x does.
     
  21. Offline

    GayJuice

    i second this suggestion i would love to give hunter's on my server this ability
     
    DJ_Idol likes this.
  22. Offline

    Lead2Life

    I've got the same error. Maybe it's because I'm using craftbukkit 860. It would be nice if you can update this great plugin
     
  23. Offline

    Damien711

    Great plugin however I'm wondering if there is a way to set a percent chance for the money you get from killing the mobs. I was using eco Creatures before this and there was the range of coins you get which is great but with the ability to set a percent chance of which you would get that reward. If this already exists please tell me but if not it would be a great addition.
     
  24. Offline

    m5k

    For some reason it doesn't work with iconomy5, cb818.
    Also, could you add a permission so only those with it get the different drops?

    EDIT: Nevermind, it works now. I failed with installing it.
     
  25. Offline

    Fujikatoma

     
  26. Offline

    Nitnelave

    Before the author unleashes his lightning upon you, I'll inform you of the basics of bug reporting. First, DESCRIBE your bug, as a sentence is often way more explicative than a log file. Then, DESCRIBE the conditions in which the bug happened (namely the CraftBukkit version of your server and the version of the plugin). If you can, give a list of steps that can reproduce your bug. Then, give whatever error message you are getting, both in-game and in the log.
    Of course, do all this assuming you have already updated to the last version of the plugin, and read at least the last 5 pages of the thread to check if the bug hasn't already been reported here.
    Oh, and being polite often helps, you know...
     
    jascotty2 likes this.
  27. Offline

    Fujikatoma

    Idk when the bug happens because i only found it in my server log ... the plugin works fine :D
     
  28. Offline

    Fujikatoma

    Ok i got to much errors :
    Appears if somone kills a monster , this error iss postet on page 3 too but i cant find an illegal item in my config.yml:

     
  29. Offline

    Kevin Forte

    Code:
    17:31:21 [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(CMEntityListen
    er.java:53)
            at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDamage(CMEntityL
    istener.java:35)
            at org.bukkit.plugin.java.JavaPluginLoader$51.execute(JavaPluginLoader.j
    ava:598)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:419)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:184)
    
            at net.minecraft.server.EntityWolf.a(EntityWolf.java:295)
            at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
            at net.minecraft.server.EntityWolf.c_(EntityWolf.java:88)
            at net.minecraft.server.EntityLiving.u(EntityLiving.java:692)
            at net.minecraft.server.EntityWolf.u(EntityWolf.java:119)
            at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231)
            at net.minecraft.server.EntityWolf.o_(EntityWolf.java:147)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1114)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:6
    2)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1096)
            at net.minecraft.server.World.cleanUp(World.java:1073)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:395)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I get this pretty often, especially when using MobArena. It seems as though it happens whenever a wolf damages a player.
     
  30. Offline

    Wakko

    Is it possible to separate wolves into tamed, wild, aggressive maybe?
    Same with creepers: normal, charged?
    Would separate slime sizes be pushing it? :p
    I'd be nice to give a better reward for killing charged creepers, and only punish someone for killing a tamed wolf.
    It's not fair to lose money because you were being attacked.
     

Share This Page