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.
-
View User Profile
-
Send Message
Posted Jul 20, 2013One error when I tried to named a horse. :)
And in my db, that horse isn't register (protect, etc).
-
View User Profile
-
Send Message
Posted Jul 20, 2013@raum
In the below error, I was in vanish mode and that it was I get the errors from modify world. I re-ran it with vanish off and didn't get the modify world permissions issue, but it still caused an error.
When I run /stables convert there is no error in the server log.
-
View User Profile
-
Send Message
Posted Jul 20, 2013@raum
1.7.3 gives me same results. It created new tables with the prefix, but the convert option didn't store any data in the DB nor did it rename the file.
I tried naming a horse, it said it was my horse, but nothing in the DB.
-
View User Profile
-
Send Message
Posted Jul 20, 2013@raum
One other thing, I'm not sure what version it was that created this file, but it was done last night sometime when I was trying to get this thing to work.
From the root craftbukkit jar directory is a file called "plugins\stables\stables.db" which obviously should be forward slashes being in Linux. So it wasn't saving the file to "plugins/stables/stables.db" which would store stables.db in the stables directory, but just a single file named "plugins\stables\stables.db" in that root directory.
-
View User Profile
-
Send Message
Posted Jul 20, 2013@RoelandCache
It's not so much MySQL causing issues - it's having to write the functions to write to multiple types of databases causing the problems :)
New version is being uploaded - converted successfully to both SQL formats.
http://dev.bukkit.org/bukkit-plugins/stables/files/27-stables-1-7-3/
As mentioned, database prefix has been added. Third time's the charm?
-
View User Profile
-
Send Message
Posted Jul 20, 2013@raum
PM me if you need any SQL help, that is my expertise, among other things.
Re: convert: My horses file didn't get renamed after running /stables convert if that helps any. As for the safeguard, that sounds fine to me, since I didn't see the renamed file I just assumed it just remained.
-
View User Profile
-
Send Message
Posted Jul 20, 2013@RoelandCache
Re: issues with convert - Working on it as we .. er .. type. The queries are all correct ... for some reason it's just not committing to the db... trying to figure out why.
Re: Virtual Stables: Yes, if the Command is enabled and a Stable (sign) isnt' required, this will effectively teleport a horse to you.
Re: Safeguards: Right now, Convert is one way - From flat file to SQL. There is no backwards from SQL to Flatfile at the moment. It's 'safeguard' is that if there's no horses.yml, there will be no conversion - and on a successful convert, the horses.yml file is removed. (Well, renamed).
-
View User Profile
-
Send Message
Posted Jul 20, 2013Since I haven't got it to work yet (as noted below) I am curious if the virtual stables can be used as optional way to teleport the horse. Store the horse, then player teleports then fetch horse from storage? This is assuming of course, that the command line option is allowed (vs just the signs) option.
-
View User Profile
-
Send Message
Posted Jul 20, 2013One more note. I went in named a horse and it said it was now my horse, however, no data showed up in the database and only was it owned by NULL if I used /stables check.
So, it appears there are still some issues which might explain why it didn't convert the tables over.
There should be some safeguard in place for the "convert" option, like if your already using MySQL then you shouldn't be able to convert to it again or only allow you to covert to flat file or sqlite.
-
View User Profile
-
Send Message
Posted Jul 20, 2013@UtiQuanti
/stables convert will jsut take everything in the flat file and dump it to your database, then backup your flat file before removing it. Roeland says there might be an issue though. Looking into it :)
@RoelandCache
Doh. Knew I was forgetting something. Since I was using SQLite to start, there was never any worry about that. I'll add that for the next release - You WILL need to manually rename your tables to match the new prefix option.
See above, re: convert
-
View User Profile
-
Send Message
Posted Jul 20, 2013Yes, it finally works now for me and it created the tables. BTW - You should prefix your tables so they don't conflict with other plugins. Use stables_owner, stables_stable, etc.
The tables are empty though and if I run /stables convert it says it converted the DB but there is not data in the database, either by using the /stables check or listhorses commands or by view the database tables directly.
Thanks for your work on this.
-
View User Profile
-
Send Message
Posted Jul 20, 2013@raum
It's work fine! Now Stables is connected to my MySQL database. :)
How can I convert to MySQL? I'm not sure to understand how works /stables convert.
Great Job!
-
View User Profile
-
Send Message
Posted Jul 20, 2013New version that fixes (tested this time :P) the MySQL issues.
Once again, typos in the config have it pulling the wrong info :P Also added 'port' to the config .. whoops.
In your config file, it is looking for "databaseI" - that should just be database. If you correct that, and add "port" below it, it should boot without needing to reload it.
http://dev.bukkit.org/bukkit-plugins/stables/files/26-stables-1-7-2/
-
View User Profile
-
Send Message
Posted Jul 20, 2013@raum
I can confirm the same error in MySQL.
-
View User Profile
-
Send Message
Posted Jul 20, 2013@raum
Aah, very nice for French localization! \o/
Thanks for you looking to this issue. I do my part of job while testing your pluging and giving you all the log. I hope that it will help you to get the best of your wonderfull plugin. :)
-
View User Profile
-
Send Message
Posted Jul 19, 2013@UtiQuanti
I'll look into this in the morning .. as I mentioned, I have not actually tested the MySQL database format at all - I'll also get the French localization added in an upcoming release. :)
-
View User Profile
-
Send Message
Posted Jul 19, 2013Hi raum,
I've a lot of problems when I activate MySQL.
I'm sure of informations I specified in the configuration file, but not if I have correctly written. Can you give us an example to configure Stables with MySQL? thanks!
p.s.: The translation in French seems to be correct. :)
-
View User Profile
-
Send Message
Posted Jul 19, 2013@raum
In 1.7.0 Auto Claim of horses to Unknown Owner Save command is removed
Please fix and reply to my PM
-
View User Profile
-
Send Message
Posted Jul 19, 2013@raum
@raum
Hey raum! Please check your PMs and send me your skype id!
-
View User Profile
-
Send Message
Posted Jul 19, 2013http://dev.bukkit.org/bukkit-plugins/stables/files/24-stables-1-7-0/
Has the ability to /spawnhorse
Also corrects a lot of the issues folks were having with SQL - If you're NOT using SQLite or MySQL, Virtual storage will NOT work.