CoreNetwork/MobLimiter — pull request #16 by intangir (2014-05-01 10:20:36+00:00)
Title: version 3.0 (nearest player range checking) (requires config changes)

I have alot of changes you guys might be interested in
some of them are probably not relevant for you but the default behavior will be unchanged for you if you don't use them
it would require a config change though, i explain how below in the commit comment, and also you can tell from just merging your old one, a few keys change to more consistent naming between group and mob

you can make any questions or comments on the pull request thread

commit comment:
SO MANY CHANGES:
MAJOR: added support for distance from nearest player checking on spawns
MAJOR: added support for handling limits on spawner mobs seperate from normal spawns
MAJOR: changed hardcoded references to animals and villagers to instead be configurable to any commands/groups/etc via the config groups key
Reorganized CreatureGroupSettings class and removed CreatureSettingsStorage
Commonized the naming of many of the variables between group and creature level
Made several options inheritable from group if they are not set at creature level
removed singular names since they are not needed
added accessors and changed variables to private for all of the creature and group settings
added optional setting for warning on count command
exclude mobs which have 0 counts in count command
changed all references to member variables to use accessors
added several convenient accessors for settings object lookups
optimized purging function
changed all uses of Creature casting to LivingEntity casting instead so ghasts slimes and other mobs can be limited
changed usage of CreatureGroup enumerations to strings
added support for breeding food check on wolves and ocelots
added debugging level log function and config option
added option to disable zombie pigmen spawning from portals
added option to choose which worlds the mob should be enabled for
removed the check for golden apple on horse breeding since the error message says 'find them in wild' (which makes more sense)
fixed breeding spam delay bug (wrong setting was used)
removed all references to singular or plural since singular was only used once and was unnecessary
removed redundant breeding limit error message (same one can be used for both)
changed default value for disabling horse breeding option to false
changed default messages to have color and fixed some grammar issues and shortened some
made too many warning optional
made too many warning display when group OR chunk is over limit
made count line not show if the count is 0

These changes will require adjustments to any existing config.yml
The groups should be indented and put under a "Groups:" key
several key names must be adjusted, reference the example config.yml for more info