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

    Codisimus

    last time i tried this plugin it was dropping too many of each item, ill assume that the issue is fixed now and i look forward to putting this back on my server
     
  3. Offline

    jascotty2

    i don't know if that was fixed before i took over, but i'm going through it now (and will be releasing 1.1 soon)
     
  4. Offline

    Codisimus

    Glad to hear, iMonster isn't working for 600+
     
  5. Offline

    NuxlyStardust

    lol cookie jar

    ...ignore me :p
     
    BenyTheBuff likes this.
  6. Offline

    Codisimus

    doesn't make a config file for me
     
  7. Offline

    jascotty2

    yes, i found that error, too
    don't worry about it too much, anyway.. it seems that the old handling methods don't work anymore, so i'm re-writing major sections of the code (and will be using a new config file)

    k, finished :D

    Version 1.1
    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

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

    Plague

    We need the latest recommended CB version in the title not some older one.
     
  9. Offline

    jascotty2

    ?
    602 is the latest recommended build right now..
    (600 is nearly identical to 602, that't why i had "600+" for v1.0, since it was tested & working with all builds 600 and up)
     
  10. Offline

    Plague

    At the time of your writing 617 was recommended. Also do NOT use the plus sign because you cannot guarantee that at any time.
     
  11. Offline

    jascotty2

    thanks for the notification, then :)
    .. also, didn't realize there was another recommended build out.. for 600 & 602 there was an alert sent out
    (and the bukkit wiki is nothing to go by.. it still says rb is 544)
     
  12. Offline

    IIRedstoneII

    Works fine on RB 612.Thanks for taking it up for future development :D
     
  13. Offline

    Codisimus

    the "no reward for x" message is rather annoying i think
     
  14. Offline

    jascotty2

    whoops.. :rolleyes:
    that was a debugging line, while i was trying to track down a negative reward bug
    removed in version "1.1.0.1"
     
  15. Offline

    Codisimus

    thats wut i thought, i forget about those too lol
     
  16. Offline

    Kevin Forte

    Fantastic plugin, better than ecoCreature and iMonster combined. My only request: Can you make it so that there is a separate message for when money found = 0?
     
  17. Offline

    MineralMC

    You mean... like the one in ecoCreature? Cookie was good in its' time, but it really can't compare to ecoC anymore, as with iMonster.

    It doesn't hurt to have alternative plugins that do the same thing - just in case a developer vanishes mid-development - but I really can't see ChrisB going anywhere anytime soon. The amount of time and effort he's put into ecoC so far is impressive in itself, and he's only just getting started.
     
  18. Offline

    Kevin Forte

    Well I have yet to get ecoC working for me, and this plugin suits my current needs far better than ecoC. Again, this would be fantastic if it had a message for not finding money at all and an Integers Only setting (yes, I know, like ecoC).
     
  19. Offline

    MineralMC

    What CB build/iConomy version are you using, Kevin? Shouldn't be having any problems with ecoC if everything is up to date.
     
  20. Offline

    Kevin Forte

    iConomy v4.63 [Kenzi]
    CB 612
     
  21. Offline

    crazymadd44

    It would be a lot nicer if you made it so you can use it on blocks as well. So if you break a block for example grass you will be rewarded x coin(s).
     
  22. Offline

    DrCube

    Is there any way to make it so money rewards are whole numbers. I have it at default and i am getting 1.88 coinds and .92 coins. Just wondering.
     
  23. Offline

    MineralMC

    Didn't catch this reply, sorry for not responding sooner; what database are you running, the default H2 build into iConomy?

    Also, what version of ecoCreature? If you use IRC, pop into #iconomy and we'll help you get it working.
     
  24. Offline

    _Savior_

    Will this work with BOSEconomy?
     
  25. Offline

    Kevin Forte

    That's fine, no worries. I do use IRC, and I'll do that soon, thanks!
     
  26. Offline

    Pomme72

    Hi guys !

    This plugin work perfectly for me, but I just have one problem : When a player kill a wolf, he's supposed to loose between 50 and 100 coins, and when he kill a wolf, he have well the message "You lose 56,58 coins for killing wolf" but the problem it's : He don't lose money, he gain !! :O

    After : he had 500 money, and when he killed a wolf, he had 550,56 money ! :O But he said me he have well the message who said he lose money...

    So, little bug here, no ? ^^

    (Sorry for my english, i'm french :D )
     
  27. Offline

    Systrafoss

  28. Offline

    Pomme72

    @Systrafoss Yes, too bad cause this plugin's really great D:
     
  29. Offline

    Maoman

    I really want this plugin to work, but I got this error message. Everything's up to date, and i'm on OSX.


    20:42:39 [SEVERE] Could not load plugins/CookieMonster.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
    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)
    Caused by: while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 10, column 1:
    coins: 1
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:73)
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:149)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:103)
    ... 8 more
     
  30. Offline

    PatrickFreed

    I'm on b617, and it was working with my older version of iConomy, but when I upgraded, it no longer gives money. No console errors or anything, it just doesn't do anything.
     

Share This Page