PetProtect
Help support development of PetProtect:
Donate
Current donations: 0
Protects your wolves and cats and horses from harm!
You don't have to read all this, download on the right >
PetProtect
(formerly WolfProtect)

Summary
Protects your dear pet from being killed by another player, or by walking off a cliff for instance. You can customize everything yourself!
What does it do
- Automatically gives wolves and cats and horses a nice display name (configurable!)
- Protects wolves and cats and horses from other players (permission-based)
- Protects wolves and cats and horses from common damage types, such as drowning, falling, suffocation, etc. (configurable!)
- Protects players from tamed wolf attacks (permission-based)
- Protects players from being attacked by tamed horses (permissions-based)
- Prevents players from riding other people's horses (permission-based)
- Prevents players from open other people's horses' inventories (permission-based)
- Prevents players from dying other people's wolves (permission-based)
- All messages are configurable
- You can reassign pets to a new owner
Permissions
| petprotect.harm.wolf.own | Harm your own wolves | default: true |
|---|---|---|
| petprotect.harm.wolf.other | Harm wolves of other players | default: op |
| petprotect.dye.wolf.own | Dye your own wolves | default: true |
| petprotect.dye.wolf.other | Dye wolves of other players | default: op |
| petprotect.harm.cat.own | Harm your own cats | default: true |
| petprotect.harm.cat.other | Harm cats of other players | default: op |
| petprotect.harm.horse.own | Harm your own horses | default: true |
| petprotect.harm.horse.other | Harm horses of other players | default: op |
| petprotect.ride.horse.other | Ride horses of other players | default: op |
| petprotect.open.inventory.horse.other | Open inventories of horses of other players | default: op |
| petprotect.bites.safe | Never be harmed by wolves of other players | default: false |
| petprotect.stamping.safe | Never be harmed by horses of other players | default: false |
| petprotect.reassign.other | Reassign pets to a new owner | default: op |
The configuration has help and is very self-explanatory.
Commands
| /reassign <name> | Reassign a pet to the player with the given name |
|---|
Submit suggestions and bugs here!!
Metrics
This plugin uses MCStats to collect information about plugin usage. Of course, this is strictly anonymous, and you can easily opt out via plugins/PluginMetrics/config.yml. The NSA isn't watching your server ;) You can of course see for yourself what data is collected on the MCStats site, just the basic stuff: how many servers, how many players, which Bukkit version, etc.

-
View User Profile
-
Send Message
Posted Jun 18, 2017Please update the plugin to the latest version soon!
Thx
-
View User Profile
-
Send Message
Posted Aug 15, 2016I have weapons disguised as dye... and I've found only this plugin preventing using dyes on wolf.. too bad it is outdated :(
-
View User Profile
-
Send Message
Posted Apr 18, 2016Hi, thanks for the work you put into this plugin! So far things have been working pretty well.
In my case, part of why I wanted this plugin is because the server I own has Thaumcraft 4 installed, which includes a significant amount of area-of-effect attacks (like fireballs and chain lightning). As a result, most magic would decimate your own pets if used along side them. With this plugin, I can keep most spells from harming pets.
That said, I've found that I get a veritable flood of messages about not being allowed to harm my own pets. Is there a way to remove these messages altogether?
-
View User Profile
-
Send Message
Posted Sep 2, 2014Riding other horses protection does not work. Even with - -petprotect.ride.horse.other.
[00:51:07] [Server thread/ERROR]: Could not pass event EntityDamageByEntityEvent to PetProtect v1.8 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callEvent(CraftEventFactory.java:107) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:537) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:450) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:569) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.EntityLiving.d(EntityLiving.java:1031) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.EntityLiving.damageEntity(EntityLiving.java:675) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.EntityAnimal.damageEntity(SourceFile:145) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.EntityHorse.damageEntity(EntityHorse.java:254) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.EntityHuman.attack(EntityHuman.java:943) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1107) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.PacketPlayInUseEntity.a(SourceFile:55) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.PacketPlayInUseEntity.handle(SourceFile:10) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:157) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:134) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:667) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] Caused by: java.lang.NullPointerException at me.muizers.PetProtect.PetProtect.onEntityDamageByEntity(PetProtect.java:268) [?:?] at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_55] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [minecraft_server.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] ... 22 more
-
View User Profile
-
Send Message
Posted Aug 5, 2014Any sign of an update for 1.7.9? The plugin throws some nasty errors in console when players mount horses since we updated from 1.7.5!
-
View User Profile
-
Send Message
Posted Aug 2, 2014@MineCraftMyph
That is because when u spawn a horse from essentials, it is already tamed. There's no actual owner in the horse's data to make it protected from other players.
-
View User Profile
-
Send Message
Posted Jun 3, 2014Horse protection doesn't work when spawned from Essentials, other players can ride horse. Also even with permissions to allow players to attack players, the wolves won't attack other players in any situation.
-
View User Profile
-
Send Message
Posted May 2, 2014@Muizers
Will you be updating tosupport UUIDs?
-
View User Profile
-
Send Message
Posted Feb 5, 2014This plugin looked so promising, but i've noticed that people could steal when using a lead/leash =/
-
View User Profile
-
Send Message
Posted Jan 29, 2014please add a system to limit the amount of pets that players can have, preferably permission-based, and per pet limitation. SRY for my bad english
-
View User Profile
-
Send Message
Posted Jan 18, 2014@UltrafaceGuy
I thought I WAS doing that! Oh well, I'll check.
@DerBlockBuilder
I'll see if this is possible.
-
View User Profile
-
Send Message
Posted Jan 15, 2014Awesome, glad to see an update!
I do have a request though. Could you maybe change the name plates to the version that name tags put onto animals? The one where it only appears when you look at the entity, and not the one that's always up.
Thanks!
-
View User Profile
-
Send Message
Posted Dec 24, 2013I'm glad to have been a user of this plugin for so long, and I've stayed with this one for many updates. I do have one more question, though. Recently I tried breeding pets, and what was produced was a puppy, which followed all the PetProtect configurations, but it did not have a title. Is this even a bug? Or? (EDIT: My bad, I needed to refresh/reload the plugin)
Also, if you could extend protection to snow golems and iron golems, that would be great!
-
View User Profile
-
Send Message
Posted Oct 21, 2013Does this work with 1.6.4?
-
View User Profile
-
Send Message
Posted Oct 19, 2013Some of my players can't ride their own horses. Help please.
-
View User Profile
-
Send Message
Posted Sep 5, 2013Hi, I think this looks great, I was woundering if you could make it so owned horses cannot move unless riden (might be hard idk im not a programmer) and leads cannot be placed/ removed by "other" players on wolf, cat, horse. Just a few ideas
-
View User Profile
-
Send Message
Posted Aug 12, 2013@mobilephone2003
In my testing I couldn't harm horses without the right permission. Are you sure you're not giving the person that could harm horses that?
Yes it is known when a pet is owned by someone. That's basically how it works yeah.
-
View User Profile
-
Send Message
Posted Aug 11, 2013With the latest available version, horses can be harmed.
Right clicking a horse changes the users view however.
There isn't anything here that explains how this actually works, i.e. how is it known that the pet is owned by someone?
-
View User Profile
-
Send Message
Posted Aug 9, 2013@babak20101
No problem haha there was a time when I learned English too!
I'll look into it as soon as possible!
-
View User Profile
-
Send Message
Posted Aug 8, 2013yes let them stand sorry my bad english im persion and icant speak english well