Horse Bodyguard
Introduction
This is a simple plugin that allows you to make your horses private so no one can damage or ride them.Also this is my first plugin, so please comment suggestions, so I can always improve. :D
How to use
This plugin is very simple to use, you just need to tame a horse!When you tame it, automatically the horse will be protected, what means that just YOU can ride and damage the horse!
Remember that: When you tame the horse, a message will appear on the chat saying that the horse is now private.
Commands and permissions
Right now there arenĀ“t any commands or permissions, but you can give ideas on the comments section below.
Configuration File
Example of the configuration file:
#Configuration for the plugin Horse Bodyguard by garimuchi #General plugin settings enableCustomRecipes: true reverseDamage: true #Horse damage settings disableHorseExplosionDamage: true disableHorseDrowningDamage: true disableHorseWitherDamage: true disableHorseLavaDamage: true disableHorseFireDamage: true
As you can see the configuration is pretty much self explanatory, but in case you did not get it, here is some explanation:
Horse damage settings: This is where you configure if you want that some damages do not be applied to horse ( This counts for every horse in the world, even the untamed! )
General plugin settings:This is where the main plugin settings are, such as the custom recipes, and the reverse damage ( which makes the player take the damage that he would do to the horse! This just work with tamed horses )
Crafting Recipes
NameTag
Iron Horse Armor
Gold Horse Armor
Diamond Horse Armor
You can give more ideas in the comments!
The Idea
The idea come out while my friend was playing on a server, when someone come and kill his horse, and stole his friend horse.So he ask me to make this plugin, so that will never happen again.
Credits
Created by: garimuchi
Idea by: .:LucasCoolSouza:.
TO DO
Idea | Version | Priority | |
---|---|---|---|
> | Be able to transfer the horses with a command | 1.4 | Normal |
> | Be able to use a permission to limit the horse tame | 1.4 | Normal |
> | Be able to name the horses with a command | 1.4 | Normal |
> | 1.1 | High |
Leave more ideas in the comments!
Servers that use this plugin
Horizon City - s26.hosthorde.com:25657
Ijoncraft - play.ijoncraft.com
SaneCraft - play.sanecraft.com
Felling generous?
You can donate to help me, so I can make more and better plugins ;)
This plugin also disables lava, fire, drowning and explosion damage for players, had to remove it.
This plugin has flags that seem to ostop the horse damage but also disables those damage flags for players i had to remove it but when you update can you please check this out because i rly like the plugin but its not helping me with these cases lol
please add an option to disable falldmg and make OPs able to kill even protectet horses
plaease make a command to admins beacuse its really anoying to have protected horses were you dont want then to be
Other people can still use a lead on other's horses.
I found the issue with this plugin. If the developer would be so kind to quickly add it.
First off, the plugin's codes for damage protection here:
As you can probably tell, there is nothing that specifies a Horse at all. This leaves the plugin listening to all damage and canceling it. However, it was not hard to fix. Here is the best solution:
Notice the tidbit at the beginning? This tells the plugin to only listen to horse damage. And therefor, only cancels horse damage. This is a seamless fix and everything works as it was intended.
Hopefully, the developer will quickly add this bit of code in, and everyone can safely update there plugins and we all can be happy.
@JohAsp97
Yeah, I reported this 4 days ago and was surprised there were no followups. It not only disables mob damage (from natural causes), but also disables player damage. You cannot drown, take damage from creepers, cannot burn in lava, etc.
WARNING! DO NOT INSTALL THIS PLUGIN
This plugin disables all mob damage. Non burning zombies will actually lag your server if you do not kill them.
This mod has a major problem: Not only does it protect horses, it completely disables player and mob damage from creeper explosions, lava, fire, drowning, etc.
I have another plugin that allows me to spawn and ride zombie and skeleton horses and it would seem it is not compatible with Horse Bodyguard. It still lets me spawn them in it just won't let me mount them.
ERROR CODE:
18:03:59 [SEVERE] Could not pass event VehicleEnterEvent to Horse Bodyguard v1.0
org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at net.minecraft.server.v1_6_R2.Entity.setPassengerOf(Entity.java:1434) at net.minecraft.server.v1_6_R2.EntityHuman.setPassengerOf(EntityHuman.j ava:327) at net.minecraft.server.v1_6_R2.EntityPlayer.setPassengerOf(EntityPlayer .java:474) at net.minecraft.server.v1_6_R2.EntityPlayer.mount(EntityPlayer.java:466 ) at net.minecraft.server.v1_6_R2.EntityHorse.h(EntityHorse.java:664) at net.minecraft.server.v1_6_R2.EntityHorse.a(EntityHorse.java:649) at net.minecraft.server.v1_6_R2.EntityInsentient.c(EntityInsentient.java :812) at net.minecraft.server.v1_6_R2.EntityHuman.p(EntityHuman.java:810) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java :1099) at net.minecraft.server.v1_6_R2.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296 ) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java :116) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:5 90) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:2 26) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:4 86) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java :419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5 82) Caused by: java.lang.NullPointerException at me.garimuchi.HorseBodyguard.HorseBodyguard.onPlayerRideHorse(HorseBod yguard.java:105) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:425) ... 22 more
Heres a suggestion Garimuchi; make it so that people can give away horses (many of my users are complaining that they can't sell horses) I don't want to leave this plugin because it's so perfect for our server :). Where it lists our name up above, would you mind linking to our website www.ijoncraft.com? if you need a test server, etc let me know and we can arrange something for your awesome plugin.
Could you make it so OP's can still have access to the horses?
I like the plugin, nice and simple.
I have had a small problem, I have found if I disable horse damage it appears to disable player and mob damage as well, for example if I disable lava damage for horses, if mobs (skele's, zombie's etc) and players that fall into lava they also take no damage.
I have had to enable all the damage options to overcome this.
Permission Ideas: 1. Configurable limit on how many horses a certain permissions group can own (e.g. Member: 1 horse, Doner 5 horses, VIP 10 horses, etc)
2. Permission that allows or disallows players to have a horse.
3. The ability to teleport to your horse or teleport to it.
@sanegaming
Glad you liked it! :D I will put your server on the servers section ;)
Awesome! I am now using this for my server (play.sanecraft.com)
@hooptiecoupe
glad you liked :D, I will work with all this ideas thank you for giving them ;)
Finally! a simple and decent horse plugin! s26.hosthorde.com:25657 (hooptiesworld.enjin.com)
ive been trieing a few different horse plugins. this is is the best so far.
I like how it has the option to enable or disable crafting recipes.
The only thing im noticeing...a small hiccup. If the horse is attached by a lead to a post. when I log off and no one is on server. I come back and the lead is either unhooked, a floating nearby..or just missing. I made stables to compenstate.
The only thing I can think to sugjest is to make it possible to turn off the animal protection on it, or allow a player to remove themselves from the horse to give to someone else.
I use factions, factions plus and factions animal portect which keeps horses safe on faction land and on my safezone area. so the option to to turn on horse killing in wilderness is nice. would add a reason to want to put horse armor on besides just looks.
It be cool to if you could allow the ability to see the stats...speed,jump, health.
or maybe incorporate it in with Horseracing plugin I saw earlier, so people could race there own horses. and test whos is better :)
@Dragon_Slayer7
It is a very good idea, I'll work on it ;)
@Desle
I will make it configurable ;)