Stables
What does it do?
Stables is a plugin that assists with Horse ownership, protection, and other horse related things. Vanilla has no ownership or tracking of horses, only if it has been broken or not. Stables changes this behavior.
Important MC1.11 Notes!
This new version (1.9.11) MAY NOT WORK WITH OLDER MC VERSIONS! It has ONLY been tested with MC 1.11!
MC 1.11 changed a lot with horses. As of Stables v1.9.11, some changes must be made in order to accommodate Llamas, Donkeys, Mules, Zombie horses and Skeleton Horses. In your config.yml, In the "animals" section, you MUST add these to the "allowed" list. Anything NOT in the allowed list will NOT be covered by Stables! (example: allowed: HORSE, ZOMBIE_HORSE, SKELETON_HORSE, LLAMA, DONKEY)
Again, as far as 1.11 is concerned Mules, Donkeys, Zombie/Skeleton horses are NOT Horses, and must be entered SEPARATELY into the config!
As of right this moment, Llama carpet does NOT save. Testing of this version has been VERY limited. Please report any and all bugs via tickets - Be as specific in your reports as possible!
Another note: v1.9.11 will create a new table in your database for stored/stabled horses, and copy all the values over, converting what needs to be converted. For safety purposes, the old table will NOT be removed. It will just no longer be used. I would suggest NOT deleting it yourself for a bit, in case you need to restore a previous version.
All localization messages are still 'Horse' and 'Steed' specific. New default messages will be added in time. As always, you can edit them yourself in the 'language.yml' file.
Requirements
- To use COST based virtual stables, Vault is required. Free storage does not require any additional plugins.
Current Features
- Protect Horses from configurable outside damages, including PVP, Environmental (falling/lava) and Monsters
- Adds recipes for Horse Armor (Barding), Name Tags and Saddles
- Now has customizable recipes for these items!
- Adds 'ownership' to horses so others cannot steal them - Use a name tag on a horse to claim it!
- Store horses in virtual stables, and recover them!
- Abilities for Admin/Staff to Remove Ownership
- Sets a max amount of horses one player can own
- Anyone with the stables.admin permission can use horses without permission
- Allow a friend to ride a claimed horse
- Lure a horse from the wild using an item (defaults Golden Carrot - Other suggestions would be Emeralds, Golden Apples)
- Horse Spawning, including ZOMBIE and SKELETON horses!
- Teleport, Summon and Locate your claimed Horses!
- Allows staff to rename horses without changing ownership
- UUID storage for databases -
- Uses connections to 'api.mojang.com' and 'sessionserver.mojang.com' if UUID cannot be resolved on the server.
What's in store for new releases?
- Horse Trading
- (NPC) Races
- Horse purchasing (from NPC)
Permissions & Commands
Please see the Permissions & Config Page here.
How does it work?
Name a horse to claim it as your own. Hit it (as the owner) with a new Name Tag (un-renamed) to free it!
- To name a horse, you have to get a NAME TAG. Use the NAME TAG in an ANVIL and change it's name to what you want the horse to be called. Then USE (Right Click) The Horse with the NAMED NAME TAG to name it. This is a VANILLA MINECRAFT feature - it is not included with Stables. This action, however, is what will claim a horse with the Stables plugin.
- You can also set the config to 'AutoOwn = true' - This will automatically claim a horse as soon as it is tamed!
Stables also prevents horses from being killed by players, mobs, environmental, or any combination of these. All options are 100% toggle-able through the config.
Virtual Stables
This feature can be disabled by the admins by setting the 'allowCommand' config option to false, and then just not creating any stable signs.
To create a stable, simply place a sign with [stables] as the first line. Stables will take over from there. If 'allowCommand' is disabled, you can ONLY use the Virtual Stables feature with a sign. Punch the sign, or type /stables store to store a horse. Please note: Storage does *NOT* save chests right now, nor will it save saddles. This is a known bug.
- Please note: The stables does *NOT* save Horse Speed. This is a Minecraft/Bukkit shortfall, and will be addressed as soon as there is a way to do so.
The Config
Please see the Permissions & Config Page here.
Recipes
Stables makes several items craftable - specifically Saddles, Barding (Horse Armor) and Name Tags.
Setting the config option for hard mode recipes will change all ingots/bars to blocks instead.
Localization & Custom Messages
Upon the first run, a file called 'language.yml' will be generated. This will have all the phrases, in English. You may change the phrases to whatever you'd like, or any language you'd like.
@King_Of_Madness
At the moment, no. It's either on for everyone, handled by signs, or off for everyone. This is on the todo list also. Hopefully a new version will get out in a week or so - thanks have been busy IRL for quite some time.
If I can't get the update out in a timely fashion, I'll at least drop a new version with required permissions on the old (current) code.
I honestly love this plugin, but I need some quick help. Is there a permission for JUST /stables store and /stables recover #? I want to give my players access to those two commands without giving them the stables.admin permission. Is that possible?
@MattCarey42
At this very moment, it works only on horses. I'm in the middle of a rewrite to optimize several things and have allowing other mobs on my todo list.
this is great for horses but is it possible to expand this to any mob that you can "own" by giving it a name with a name tag?
@raum
You can find a example/source and compiled version of Mu1ti1ingu41 here:
https://github.com/PapaHarni/Mu1ti1ingu41_Bukkit/
If you have more questions, contact me ;-) Like E-Mail, Skype or what ever :-D
@raum
I know, EnviromentalDamage is in config, but I would like to disable ONLY suffocation and leave the other damage enabled.
@dickwick
That is already in the config, sort of - You cannot currently set each specific damage type (which I can add), however setting general.EnviromentalDamage to 'true' will prevent suffocation. (It also prevents damage via lava, fire, drowning, cactus, block explosions, and anvils dropping on their heads)
@PapaHarni
At this time the source isn't available. Somewhere around v1.5, some great big jackasses decided to steal the code and label it as their own, releasing it on Bukkit and Spigot - it's left a rather sour taste and hasn't been re-posted on git. When/if it is, a link will be posted on the main page. Where's the API/Doc for your plugin?
Hi raum! Could you add option to specify which enviromental damage can be blocked? A lot of people are suffering from bug when horses are pushed into wall and suffocated. I would love to disable suffocation damage only and leave the rest (lava/falling/etc...)
Hey raum,
can u share the source please? I want it with use my mu1ti1ingu41 plugin. It's a plugin to change the language global by every user for all plugins which support it.
Thx
Update that should fix clearhorses is in. Also noticed that the person who made the Youtube video has decided to make it private, for whatever reason, so it's been removed.
If anyone cares to make another, PM me with the link. :)
@raum
Thank you very much for the reply, I will be looking for your update soon.
@Gweedo358
Clear Horses is one of the ... older mechanics I wrote, and did not actually do any sort of database checking .. It only allowed for clearing an online player's horses and I hadn't gotten around to changing it.
I will have it corrected in an update this weekend.
Edit: 1.9.10 is still not ready for release - This will be fixed in the minor update of 1.9.9.2. If you subscribe to file changes, you'll see as soon as it's uploaded. Otherwise, you'll have to just keep checking back until Bukkit approves it for download.
I have a player that was banned with a lot of horses owned, the command of /stables clearhorses <player> gives an error of "the owner is unknown". The command of /stables listall <player> , gives me the proper list of horses the player owned. There is too many horses to find and remove from ownership of this player one at a time.
@darkvergus Localization should take color codes just fine, using the same codes as Essentials.
@vapaskeu
There isn't technically any distance limit at all. However if the chunk is unloaded - which occurs automatically in Minecraft when you move too far away from a spot - Stables sometimes has a hard time getting it loaded and summoning the horse from the previously unloaded location. v1.9.10 will address this, but it still may not be 100%.
Hey, I'm struggling with the teleportation distance being much too small for my server - is it possible to extend it? I understand horses may die easier but it would be so much easier.
does the localization accept color codes?
@Sikatsuu
The permission is only required if you have it disabled in the config. Set 'stable.useCommand' in the config to TRUE - then people can use the command '/stables store'.
@GrimmIDGN
I haven't seen, nor heard anything about that. Is Stables giving any kind of message? Are you certain it's Stables? Have you tried disabling Stables and trying to mount? The only reason it would do something like that is if the event is being cancelled by something else, such as an anti-grief plugin.
Has anyone else experenced some untamed horses not being able to be mounted?
How can i allow my players to store them in virtual stores without a permission?
@WhosHenry
There isn't technically a distance limit, however if the chunk is unloaded, it has a harder time - as Stables tries to load the chunk, then teleport the horse - unfortunately this fails often. I've been experimenting with better ways to do this, but most are impractical or require way too many resources for such a small task.
I may go ahead and add the more resources method, and just have it be a toggle on/off in the config.