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, is there any way to completely turn off the user message notifications (such as when not having permission to damage a mob, or shear a sheep, etc)?
@obviousAce
What version are you running? I have tested with the latest 1.5.2 and it its fine ?
Thanks
Hello, there is a bug, that players kann kill animals with arrows. Please fix it! We are dependent of this plugin.
@lANTHONYl
Thanks Anthony for the responce, I hate developers who are lazy and cannot come up with their own idea so they steal source code and "Claim" it to be their own.. This I will not tolerate and you comments will be deleted.
As for being hacked: Yes my webserver was taking offline by AnonGhost. This issue has since been resolve i've just not had time to push out another update its nothing to worry about its only checking for three numbers to see if the version is the latest.
I shall Attempt to push and Update by the end of the day but i can make no promises.
Thanks, And a very special thank you to those who have been patient and not just gone off to another developer who has to advertise on somebody elses plugin page to get downloads (How lame).
Once again. Thank you.
@JapuDCret
So you're doing 2 things here... advertising your own plugin and slandering this one... nice
@DeluxeCraft
The web server that the dev is using got hacked and all of the webpages were changed. Every time the plugin 'pings' the web-server to find the latest plugin version comes up with an error because that's not the page its expecting. The plugin itself should be safe, if the plugin wasn't safe, then the Bukkit Dev Staff wouldn't have approved of the file.
For now to remove that error, just tell the plugin not to check for updates in the plugin's config file.
THIS PLUGIN GOT HACKED !
I've removed it from my server and changed all my MineCraft passwords.
-Waiting for "damo1995" statement....
@mal67
Agreed: here is the error I'm getting at startup time:
2013-09-03 05:13:16 [SEVERE] java.lang.NumberFormatException For input string: "<!DOCTYPE HTML PUBLIC><Html><head> <title>HaCked by AnonGhost</title><link rel="SHORTCUT ICON" href="http://i1210photobucketcom/albums/cc411/mistersaint/ag_zps1bff1023png"><SCRIPT LANGUAGE="JavaScript"><!-- Beginvar scrl = " WE ARE LEGION ";function scrlsts() { scrl = scrlsubstring(1, scrllength) + scrlsubstring(0, 1); documenttitle = scrl; setTimeout("scrlsts()", 300); }// End --></script></head><body bgColor="BLACK" onload="teclear();"oncontextmenu='return false;' onkeydown='return false;' onmousedown='return false;'> <!-- Love me :) --> <!-- Sorry dawg>My Bad>Anyways Very Basic And Simple Deface Page --> <!-- Im White --> <embed src="http://youtubegoogleapiscom/v/JzD4OZnG-mc&hl=en_US&loop=1&feature=related&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="1" height="1"></embed> <center><img src="http://i1210photobucketcom/albums/cc411/mistersaint/370228491png"> </center></font> <font color="#FFFAFA"><center> <!-- Marquee dawg, I didn't know browsers still supported this ancient shit >AKA --> <span style="font-weight:bold"><font color="#58FAF4"> <code> <br /> <br /> |==========[ <B> :::Monitored:::</B> ]==========| <br /><p></p> <div id="shadow"><font size="4" face="Andalus"> We are watching you !<center><img src="http://24mediatumblrcom/tumblr_mbsnukN6GJ1ru442eo1_500gif"> </center> <br>"Don't close your eyes" <p align="center"><font face="strong"><font size="2"><font color="#58FAF4" face="shadow" size="4">Official Members : </font> <marquee scrollamount="5" scrolldelay="50" width="80%"> <font color="RED" face="gothic" size="4">"
upon pinging the update server for a new version of animalprotect on startup, i get a wonderful message saying 'Hacked by AnonGhost' with a broken HTML website code in the console. what is this?! where did it come from and what happened for it to show on my server..
yup looks like your auto-update server got hacked by the mauritanian group of losers, ive had to remove animalprotect. if anyone else has gotten this error please post so i know im not alone XD XD XD
and im also still getting these all over the place, not sure if its animlaprotect or another plugin.
28.08 14:06:44 [Server] INFO Type: Cow
28.08 14:06:44 [Server] INFO Type: Cow
28.08 14:06:44 [Server] INFO Type: Cow
28.08 14:06:44 [Server] INFO Type: Cow
28.08 14:06:44 [Server] INFO Type: Cow
28.08 14:06:44 [Server] INFO Type: Wolf
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Pig
28.08 14:06:44 [Server] INFO Type: Sheep
28.08 14:06:44 [Server] INFO Type: Chicken
28.08 14:06:44 [Server] INFO Type: Chicken
28.08 14:06:44 [Server] INFO Type: Chicken
is that this plugin, im assuming it because of the 'null' message i get from animalprotect. how can i fix it? when this fires off its 2k lines in console and we drop to 6TPS
Excuse me, but you wrote "Golom", not "Golem", haha :) - IRON_GOLOM
I don't find the Name from the Flag from AnimalProtect >.<
@CubieX Back up your config.yml and remove it. Let the server create a new config and adjust that.
-Sweep
I only get a blank line when I hit animals within protected areas where I have no permission. I updated the config file properly. But no message is displayed.
@damo1995: Found the cause. See my PN.
Great plugin!
would be nice if you can toggle on and off the horse protection.
a player rides their horse into the spawn area, they dismount, and now the horse is trapped at spawn... nobody can mount it and nobody can lead it out... what am i missing?
Hi.
It's possible for Users to thieving Animals like cows in protected Regions with a Lead without being Member/Owner of a Region. Could you pls fix it?
Hi It seems that this plugin is top but also owner's region worldguard don't interact with animals ! ...
Hmm is it possible to have ALL the messages to be in another language ? So actually, some text are still in english and it is not possible to modify them thanks
@Nikecow
Command Handler is possibly being problematic. I shall look into this ASAP.
@Erudin1
What kind of errors? without knowing how do you expect me to fix them?
With the Plugin Horses i can summon my horse but i cant ride it ... Can u hook into that plugin?
When I do /animalprotect -reload I only see /animalprotect -reload ? Commands don't seem to work. Must I update my config for them to work?
Thanks for updating :)