CookieMonster
CookieMonster - Money and Items for PvM and PvP
Version: 1.8.1
NOTICE:
I have re-written this from the ground up and moved this project to become "CookieMinion"
https://dev.bukkit.org/projects/cookieminion
Tons of improvements and optimizations in less than half the code size of CookieMonster!
1.13 support is continued under the CookieMinion project
Improvements over the old CookieMonster:
- Uses Vault for cash economy, greatly expanding compatibility
- Entity data saved in metadata, freeing up threads required for cleanup
- WorldGuard enabled/disabled regions are now a flag injected into WorldGuard itself ('cookiemonster')
- Item drops can include metadata - even book contents!
- Permission-based reward multipliers
- Execute console commands when things are killed!
- Can drop items that are converted to currency when collected from the ground.
- Simpler configuration that can still be granular
Changes:
- Player-made spawner tracking removed, now only tracks spawners
- Players can kill expensive things, balance won't go negative
This project page is being reserved for if/when I finally get around to finishing CookieMonster 2.0, which will be minutely configurable, but at the cost of a considerably larger code base.
CookieMonster:
Receive Economy rewards for hunting down monsters, animals, even other players!
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:
- ? permissions (for rewards & maybe permission to kill without penalty?)
- ? penalties/rewards for killing players in groups?
Demonstration Video: http://www.youtube.com/watch?v=1y24vv2tOqg
maaan compile your plugin and upload then plssss the source at github is good and the download jar file is not :(
@sicarius75 Hopefully they are updating it because the minecraft update for 1.4.6~ probably has like a new api or something. And the author @jascotty2 just updated it like 2 days ago.
I Downlaoded the lätest 1.7.4 but wenn i start the server it still says v1.7.3.2
and i get the error wenn i kill something 2012-12-23 09:57:48 [SEVERE] Could not pass event EntityDamageByEntityEvent to CookieMonster v1.7.3.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_4_6.event.CraftEventFactory.callEvent(CraftEventFactory.java:81) at org.bukkit.craftbukkit.v1_4_6.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:367) at org.bukkit.craftbukkit.v1_4_6.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:389) at net.minecraft.server.v1_4_6.EntityLiving.damageEntity(EntityLiving.java:674) at net.minecraft.server.v1_4_6.EntityMonster.damageEntity(EntityMonster.java:39) at net.minecraft.server.v1_4_6.EntityHuman.attack(EntityHuman.java:803) at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:1119) at net.minecraft.server.v1_4_6.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112) at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/entity/CraftSkeleton at com.pi.coelho.CookieMonster.CMConfig.creatureIndex(CMConfig.java:268) at com.pi.coelho.CookieMonster.CMConfig.creatureIndex(CMConfig.java:240) at com.pi.coelho.CookieMonster.CMRewardHandler.canAffordKill(CMRewardHandler.java:57) at com.pi.coelho.CookieMonster.ProtectionListener.entDamage(ProtectionListener.java:67) at com.pi.coelho.CookieMonster.ProtectionListener.onEntityDamage(ProtectionListener.java:48) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 20 more
2012-12-21 01:27:57 [SEVERE] Could not pass event EntityDeathEvent to CookieMonster v1.7.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_4_6.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:313) at net.minecraft.server.v1_4_6.EntitySkeleton.dropDeathLoot(EntitySkeleton.java:175) at net.minecraft.server.v1_4_6.EntityLiving.die(EntityLiving.java:866) at net.minecraft.server.v1_4_6.EntitySkeleton.die(EntitySkeleton.java:126) at net.minecraft.server.v1_4_6.EntityLiving.damageEntity(EntityLiving.java:746) at net.minecraft.server.v1_4_6.EntityMonster.damageEntity(EntityMonster.java:39) at net.minecraft.server.v1_4_6.Entity.y(Entity.java:324) at net.minecraft.server.v1_4_6.EntityLiving.y(EntityLiving.java:307) at net.minecraft.server.v1_4_6.Entity.j_(Entity.java:237) at net.minecraft.server.v1_4_6.EntityLiving.j_(EntityLiving.java:497) at net.minecraft.server.v1_4_6.EntityMonster.j_(EntityMonster.java:24) at net.minecraft.server.v1_4_6.World.entityJoinedWorld(World.java:1334) at net.minecraft.server.v1_4_6.WorldServer.entityJoinedWorld(WorldServer.java:546) at net.minecraft.server.v1_4_6.World.playerJoinedWorld(World.java:1315) at net.minecraft.server.v1_4_6.World.tickEntities(World.java:1193) at net.minecraft.server.v1_4_6.WorldServer.tickEntities(WorldServer.java:443) at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:580) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/entity/CraftSkeleton at com.pi.coelho.CookieMonster.CMConfig.creatureIndex(CMConfig.java:268) at com.pi.coelho.CookieMonster.CMConfig.creatureIndex(CMConfig.java:240) at com.pi.coelho.CookieMonster.CMRewardHandler.getDropReward(CMRewardHandler.java:240) at com.pi.coelho.CookieMonster.CMEntityListener.onEntityDeath(CMEntityListener.java:148) at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 25 more
Bukkit release 2549, CookieMonster 1.7.4
http://pastebin.com/23E4cR7w
Heres an error for you to look at with the new craftbukkit r.1.1 update
http://pastebin.com/FyM7CPAF
http://pastie.org/5553036
I know it not only this plugin, but can you fix it??
I know you can change the item the monster drops, but can you make the item also enchanted?
want to make a sort of mmo server when a boss is killed it drops a sword with a enchanment
Is there any way to rename the items? So if it says "You got 1$ for killing a creeper with a bow" and change the item names so it would be "You got 1$ for killing a creeper with a rock" or anything else for that matter?
Is their any chance that you could make it so you can modify the msg when you kill a mob and the percentage for each mob of when they get the money this could make it a whole new level of a plugin. Thanks!
What is the command to give people money reply ASAP :) KiNG_MiN3R
@FritzHugo3
I have the same issue, if anyone could shed some light on how to get mobs to drop spawn-eggs I would greatly appreciate it, as it is going to be a critical role in my server's economy. Thanks in advance!
HOLY COW IT UPDATED, THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@chalemi
it's essentials , not cookiemonster ;)
Error log
some problems with cookie monster when i type /killall
http://pastebin.com/sJAUXQ82
Error log 2
When a player try to kill a irongolem , the console says : 22:30:37 [WARNING] [CookieMonster] Error rewarding player: unknown entity CraftIronGolem
Could you do anything for that ?
config.yml
settings:
20 Tame_Wolf: drops: coins: -2040 Pet_Wolf:messages:
I updated to 1.7.3, let the plugin generate a new config.yml I ran the server and verified that the plugin worked with the default file.
After editing the config.yml to my old values for my server it stopped paying out to people on kills. I have checked the yml 4 times and I cannot find anything wrong with it. Can you please check and let me know if I have something wrong in my settings that would cause this?
http://pastebin.com/KuPVDqSu
Waiting for 1.4.2 release. Keep the good work Jas. keeping an eye on this plugin.
i cant use /spawnmob? idk if that was part of the plugin or not but i saw it on the video? if not where do i get it?
@TNTUP
Yes.
Still working in 1.3.2?