Skip to content

a continuation of Coelho's initial CookieMonster, based off of the ideas from iMonster (but none of the code, so it's fast & lightweight)

Notifications You must be signed in to change notification settings

jascotty2/CookieMonster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 

Repository files navigation

CookieMonster! - iConomy Money and Items for PvM

Description:
This is a continuation of Coelho's initial CookieMonster
CookieMonster is based off of the inactive iMonster, however uses none of the code from it, 
so it is extremely lightweight and fast. 


Features:
configurable item drops and economy reward for each monster
configurable economy reward for items used to kill monsters
can also be used for PvP
Supports iConomy & BOSeconomy
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
- define # of kills in this area within a timespan
- 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


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 (with permissions.. even groups)


Changelog:

Version 1.8 - 8/1/13
added feature to allow rewarding a percentage of kill, instead of all reward to last damager
damage listener now works for snowballs (damage = 0, but still ;)), potions, and other projectiles


Version 1.7.4.3 - 7/7/13
Update for 1.6.1-DEV


Version 1.7.4.2 - 2/19/13
added check for MonsterFix compatibility


Version 1.7.4.1 - 12/23/12
Minor changes for compatibility with v1.4.6


Version 1.7.4 - 12/19/12
Updated to work with craftbukkit 1.4.5-R1.0


Version 1.7.3.2 - 11/27/12
added new option in formatting messages: <longamount> (only works with vault - prints the name of the currency after the amount)
fixed tracking errors related to config reload
fixed an essentials-specific error when invoking "/killall"


Version 1.7.3 - 10/21/12
updated for new entities
- (added Wild_Ocelot, Tame_Ocelot, Pet_Ocelot, Iron_Golem, Wither, Wither_Skeleton, Bat, Witch)
added compatibility for Vault


Version 1.7.2.1 - 3/5/12
better fix - converted to new config system


Version 1.7.2 - 3/5/12
quick fix - added old config classes so still works


Version 1.7.1 - 1/31/12
removed a debug message that occured when a player didn't have an account to credit
updated listeners for new bukkit system
fixed so camping player kills won't remove items
- player gets to keep their items
- tried to make so keeps their xp, but may be a bukkit limmitation for now..
added option to remove drops from camping kills


Version 1.7.0.1 - 1/15/12
fixed block rewarding for compatibility with lwc & worldguard


Version 1.7 - 1/13/12
updated for mc 1.0
changed how entity protection is handled
- now in two classes, so protection occurs before drops do (allows for other plugin compatibility)


Version 1.6.6 - 10/4/11
fixed pre-enabled econ plugin from disabling money rewards


Version 1.6.5 - 9/26/11
fixed alwaysReplaceDrops sometimes being applied twice


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


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


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
updated wolves for 1.5
Items are checked to be valid before added to drops list


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.0.1 - 4/2/11
removed a debugging line


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 --------
Version 0.2:
Fixed tuns of first-release bugs
Version 0.1:
Initial release

About

a continuation of Coelho's initial CookieMonster, based off of the ideas from iMonster (but none of the code, so it's fast & lightweight)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages