AnimalProtect
AnimalProtect
Created by Damo1995
As you may or may not have seen down in the comments below, World Guard is looking at implementing the function of this plugin into theres. Please click here to see what is going to happen and the way forward for this plugin
== What is AnimalProtect: ==
AnimalProtect is a simple but effective worldguard addon to block players killing animals inside regions they cannot build in.
The plugin will block any form of damage to the mob/animal including bow and arrows.
The plugin will also allow you to configure if you would like to protect hostile mobs inside regions too, this is disabled by default.
== How does it work? ==
AnimalProtect works by checking if the player has permissions to build in the area, either via region addmember or if they have the
bypass region protection built in op flag.
== Config file: ==
# Default Config for AnimalProtect notify: true notify-interval: 10 notify-player: true notify-outdated: true update-check: true shear-protect: true debug: false protect-from-player: - CHICKEN - COW - MUSHROOM_COW - OCELOT - PIG - SHEEP - WOLF - IRON_GOLEM - SNOWMAN - HORSE protect-from-monsters: - VILLAGER FailMessage: You cannot attack mobs here! RideMessage: You cant ride this Horse/Donkey! CommandFail: You lack the necessary permissions to perform this action. AdminNotification: Attempted to kill protected animals
for mobs that can be used in the config click here
== Commands: ==
/animalprotect - Public command to show plugin info.
/apreload - Reloads config.
/apupdate - Checks for updates - If enabled in config.
/aplist <type> - Types: Mobs, Players - List the protected animals.
/apunclaim- Allow players to unclaim horses.
/specialcommand <type> - No the command isent called specialcommand its called something else and it is for horses, But can you find it??
== Permissions: ==
animalprotect.admin - Everything
animalprotect.notify - Notify this player when player attempts to kill animal in protected regions.
animalprotect.bypass - Bypass protections
animalprotect.list - Allows aplist commands
animalprotect.update - Allows apupdate command
animalprotect.unclaim - Needed for the /apunclaim command.
== ToDo: ==
- Add support for use flag.
== Download ==
Source
Version 1.4.1: Download
Like my plugin? Would you consider donating a small amount to keep me encouraged?
Hi i'm runnig craftbukkit 1.7.9 and i tried with animal protect v1.6.0 and v 1.6.1 but both give me the same error while loading plugins:
We use this at our spawn and it works great with 1.7.4 R3 Spigot
Please could you update your source code on github? Thanks!
Also, theres no "whitelist" for regions that animalkilling is allowed (Mobarena regions and mining spawn too, cannot whitelist those regions)
DOESN'T BLOCK out leashed events! Players able to steal mobs and kill them outside of region! Fix possible?
Going to use this plugin soon, does it still allows players killing animals outside of regions like __global__? If so, yes will use it, because I allow players taking/killing in __global__, this region is blocked from building so players buying a region in __global__, their animals is protected automatically.
Very nice. Looking forward for a custom worldguard flag, whether from your side or from worldguard ;)
How do I use this.... I'm so confused please help
@damo1995
Well, I am not sure how very detailed one can set up regions with this new flag, so some might still be interested in an additional plugin that allows very specific manipulations. So I would not say you have to drop this project completely. Just keep an eye on it. You're welcome.
Hello, you've made a very good plugin, but when I enable your plugin, I've an error :
Your autoupdate doesn't work..
@streetkilln
What is your AdminNotification in the config set empty? If so this will happen Please let me know if this is not the case.
@NotoriousNemo
Uploaded beta version 1.6.1 which includes a disable HorseClaim - Now set to false by default.
@Phoenix_IV
Thank's for the heads up, Although it is a shame to see that WG is now integrating this by default which means this plugin will more then likely become obsolete, I thank you all who have Downloaded, tested and reported any bugs with my plugin, and I hope it has been as useful as the amount of fun I have had programming it. - I will be releasing my new administration plugin shortly, a brand new concept on a freeze plugin :)
This plugin worked good at one time, now the apunclaim is just buggy and horse doesn't work. If there is was a option to turn that off, that would be a temporary fix. The mob protection still works.
@streetkilln
Hey damo,
I just want to let you know that WorldGuard will, very likely, introduce a flag to protect mobs in its next release. I just recommended your plugin to one of my users and now noticed the commit. Maybe you want to adapt somehow or anything.
Cheers :)
anyone knows why its saying the persons name then null when they attack an animal
Suggestion: Please add a way to disable the horse claiming. It's very annoying for players that share regions to have horses on it that they cannot ride.
EDIT: Or better yet, best of both worlds. would it be possible to set it to always let the owner of a horse ride said horse, but also let anyone with build permissions ride it?
I'm looking forward to that update; I cant let people kill animals at my spawn.
Players can ride horses that aren't theirs.
They can't damage them but the can ride them.
@streetkilln
there should be a way to remove animal protection from a region or white list a region or somthing
is there way to remove animal protection from an region?