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?
change 1.4.0 to 1.4.1 and ?
2013-01-01 06:24:44 [INFO] [AnimalProtect] Enabling AnimalProtect v1.4.1 2013-01-01 06:24:44 [INFO] AnimalProtect 1.4.1 : Enabled! 2013-01-01 06:24:44 [SEVERE] java.net.UnknownHostException: ddelay.co.uk 2013-01-01 06:24:44 [SEVERE] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) 2013-01-01 06:24:44 [SEVERE] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) 2013-01-01 06:24:44 [SEVERE] at java.net.Socket.connect(Socket.java:579) 2013-01-01 06:24:44 [SEVERE] at java.net.Socket.connect(Socket.java:528) 2013-01-01 06:24:44 [SEVERE] at sun.net.NetworkClient.doConnect(NetworkClient.java:180) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.http.HttpClient.openServer(HttpClient.java:378) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.http.HttpClient.openServer(HttpClient.java:473) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.http.HttpClient.<init>(HttpClient.java:203) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.http.HttpClient.New(HttpClient.java:290) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.http.HttpClient.New(HttpClient.java:306) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) 2013-01-01 06:24:44 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) 2013-01-01 06:24:44 [SEVERE] at me.damo1995.AnimalProtect.AnimalProtect.readURL(AnimalProtect.java:174) 2013-01-01 06:24:44 [SEVERE] at me.damo1995.AnimalProtect.AnimalProtect.updateCheck(AnimalProtect.java:204) 2013-01-01 06:24:44 [SEVERE] at me.damo1995.AnimalProtect.AnimalProtect.onEnable(AnimalProtect.java:57) 2013-01-01 06:24:44 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2013-01-01 06:24:44 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 2013-01-01 06:24:44 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 2013-01-01 06:24:44 [SEVERE] at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java:282) 2013-01-01 06:24:44 [SEVERE] at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.java:264) 2013-01-01 06:24:44 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:321) 2013-01-01 06:24:44 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:300) 2013-01-01 06:24:44 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:259) 2013-01-01 06:24:44 [SEVERE] at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java:149) 2013-01-01 06:24:44 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:399) 2013-01-01 06:24:44 [SEVERE] at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) 2013-01-01 06:24:44 [SEVERE] Error occurred while enabling AnimalProtect v1.4.1 (Is it up to date?) java.lang.NullPointerException at me.damo1995.AnimalProtect.AnimalProtect.updateCheck(AnimalProtect.java:205) at me.damo1995.AnimalProtect.AnimalProtect.onEnable(AnimalProtect.java:57) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:321) at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:300) at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:259) at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java:149) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
the web adress in the /animalprotect is http://www.dev.bukkit.org/server-mods/animalprotect, it should be http://dev.bukkit.org/server-mods/animalprotect
@joshwenke
I have not seen nor had any reports of the plugin causing any Impacts on server performance, Nor should it really considering all it does is check using IF statements. Feel free to look at the source.
Plugin looks very good, however I do have a question. How much impact would this have on server performance? It's a handy plugin and would be very nice to have, but it's not one of those "necessities".
Hi guys,
Can i just remind you that anything you report via the ticket system you must attach your current config and the error from the console/server.log
Thanks
@AiliseZooey
Yes the Current Version works Fine with 1.4 :)
@FuRiouSOne
Possibly, I thought factions already had its own AnimalProtections?
Could you make this work with factions as well?
Hi, this is just the kind of plugin I was looking for. I know you will update it to 1.4 eventually, but my question is if the current version works fine in 1.4 now? or is it unstable?
@Mayhem777
As soon as a stable bukkit build is available :)
1.4.2 out! when will we have a new ver :3
I appologise for the lack of updates regarding this project.
I have had a slight accident today where I have lost roughly about 9 hours of work on it over the past day or so meaning this update will now more then likely be pushed back till the release of 1.4. Hey ho, At least its not starting again from scratch.
and
@Marenwynn
Unfortunatley not. I have been looking at flagging and uses for it so this could be possible with a flag, i may just use the USE flag or something along the lines of that.
Thanks.
Is it possible to put the plugin in reverse on specific worlds? Unable to kill animals in __global__, but only in owned regions?
@CubieX Yes this shall be added under the Projectile protections list on the next version.
@Nikecow Yes i am aware of this :) I plan on correcting this mistake in the next update
@tarkus80
No unfortunatley at this moment in time this is not a feature.
@damo1995: Animals can be killed with eggs. Could you add this to the protection?
@damo1995
Hey, are you aware its spelled villager ? :P In your config its villiger I believe.
great plugin :) but one question:
does it also prevent users from using wheat to elicit sheeps from a region? and is it also possible to add some multilanguage support?
Can mushroom cows also be added to the shear protection?
@Pixiyo
There are plenty of other plugins that can be used with residence to stop certain players from killing animals and mobs in residences. They are actually listed on the main Residence bukkitdev page. Here are a few: ResExtras and ResProtect.
@CubieX
I am currentley re-writing the plugin to allow a configurable list of what you would like to be protected from Player, Mobs and Projectiles.
@softvelvet
it would be impossible to do this in a region but i could add the option so it is global?
@Pixiyo
I shall look into this but i think i would more then likely create a new plugin just for residence for that rather then Incorporated into this as it is already a little too bloated.
Tested. Works and is really cool! Our members often complained about ruthless players, who slay their animals, without us having a chance to track those players. With this plugin we won't even be bothered with this. *thumbsup*
But: Could it be, that trying to kill an animal with a bow does not get logged?