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?
Riding unowned horses and taking stuff from their inventory isn't blocked with 1.7.5
No errors in console.
This is a great plugin.
Is there a way to have animals respawn after a server restart with this? A player has created a mascot pig in his protected area, but it disappears whenever the server restarts.
Is there a way to have the pig come back?
Thanks.
@AKlarvanto
Wild horses don't have owners by default its set to <null>, the only thing that would cause that is if a player has riden it into the wild or has tamed it previosuley because thats when ownership takes place AFTER its been tamed. if you having problems with wild horses your going to need to hop on them and use /apunclaim
also regarding the /specialcommand, That isent the actual name of the command. You will need to find that yourself HENCE why it is a easter egg would be pointless otherwise :)
If you wish to chat regarding this im happy to add your on skype and explain it too you, Just PM me with your Skype name or other Instant messenger name.
@Greenman1805
The is no way to currentley do that i am aware off, Set the parents of you child region to global using /rg setparent <region> global and it should be fine :)
Maybe I'm missing something here but we have situation where member of the region can't ride horses. I wonder if it would be good idea to allow ride by default (because horses are usually kept in barns and those are locked and protected) and plugin would only provide kill protection. My understanding is nobody can't claim ownership of horses so allow or disallow riding does not make lot of sense. What I'm saying is horses that wonder free should be public property unless someone places them in the barn. That would make whole plugin more simple because you can not kill them anyway if they are inside region and locked up.
My second question is regarding /specialcommand. What the heck is that and how to use what? Overall I really love this plugin but I need some feedback to understand the whole thing. Thanks and keep up the good work!!
Very good plugin ;)
Thanks for the update
@97WaterPolo
The command works. Sit on the horse and type the command.
When you set the global flag build to deny the users can't kill the mobs :( Maybe its possible to ignore the global because the players on my server can only build on their own regions and its not good when they can't kill mobs outside their regions. Maybe you can add a point in the config e.g. ignore global region= true/false
(Sorry for my Englisch, i'm German)
@damo1995
Seems commands are returning false. If a player does /apupdate or /apunclaim it just says "/apupdate" in chat in white. Nothing works, is this a problem on my end?
Thanks for update
Console errors if you delete the configuration file.
is there a way of protecting horses/animals from suffocating in walls?
@Absentee23
I submitted the plugin to bukkit for submission, Its up to them now on the time for acceptance.
- I am just about to update the plugin description now to include all the changes, new commands, and permissions.
Regards
@damo1995
Awesome. The unclaim command will be extremely useful too.
@Absentee23
I am working on an update now along with a few other special features, i think im going to call this one the Horsie update XD.
- I've added advanced protection to the horses so players when they tame them are the only ones who can ride them. Also an unclaim command so they can still sell them and allow friends to use them.
This will allow players to ride through regions and allow dismounting without the horse getting stuck but will also protect the player from killing it whilst inside a region they cannot build in.
- I will add a use flag option but that will come in a later update.
regards.
@97WaterPolo
Can you clarify "allow horses?"
This plugin works great for everything but horses for me. I'd like the option to allow mounting/dismounting and riding anywhere, but disable killing them on regions without build perms.
Its kind of annoying to not have both switchable, because either you protect them from being killed, but make them useless in a larger city region because if they ride them and then get off, the horse is lost unless they lead them back to a buildable region. The alternative is unprotect them completely, which gets them killed and players in trouble.
Everything works find as far as I can tell on 1.7.2 so far, fyi.
@damo1995
Well not meant for 1.7 but rather an update so you can allow horses, have region flags, etc, lol
Does this stop editing the horse's armor, etc, too?
Hey damo,
could you add an option to your plugin that if a player has the use flag, that he/she is already able to kill mobs? I have some areas defined that I don't want people to build in, but I want to make it so that they can use everything and kill mobs after getting to a certain rank. If they don't have the rank they should not be able to do that which is right now not the case. The use flag would just be perfect for this. Would that be possible?
Cheers
@TheSigler49
The current build with WORK with 1.7 without any issues i am aware of.