MyHorse
MyHorse let's your players have more control over their horses!
Simple, easy and lightweight.
- Name your horse
- Protect it from stealing & inventory theft
- Protect it from dying (Owned horses are invulnerable)
- Protect it from being unleashed by others
- Simple transfer of ownership of horses (great for buying/selling!)
- Put your horse for sale (Right-click to buy it)
- Keep a list of your owned horses
- Teleport to your owned horses
- Teleport your owned horses to you
- Option to allow putting a chest on any type of horse
Select your horse
Simply mount your horse to select it as your currently selected horse.
By default, only the owner can mount his horse.
Naming
To name your selected horse simply use the command:
/myhorse name <horsename>
When your horse has a name, it is only ridable by you
Anti Theft
After taming your horse, the horse is "locked" and can only be used and accessed by its owner. To allow others to use your horse, use the commands:
/myhorse lock /myhorse unlock
Come here!
After selecting your horse, you can summon it to you with the command:
/myhorse comehere
My horses?
See a list of your owned horses with the command:
/myhorse list
How cool is my horse?
Check out the info about your selected horse with the command:
/myhorse info
Goto my horse!
After seeing the list of your horses, you can goto any of them with command:
/myhorse goto <id>
Note that this command is disabled in config.yml by default
Set a new owner for your horse
After selecting your horse, you can set a new owner for it with the command:
/myhorse setowner <ownername>
Go away!
Set your selected horse free with the command:
/myhorse goaway
Sell that horse
Set your selected horse for sale with the command:
/myhorse sell <price>
Any player with the myhorse.buy permission node can now right-click to buy the horse.
(Note that Vault is required for this feature)
Spawn a horse
Admin can spawn any type of horse with the command:
/myhorse spawn <normal|mule|undead|skeleton> <baby>
Multiple Worlds
Set the worlds you wish to enable MyHorse in the config.yml file:
Worlds: - world - world_nether - world_the_end
Damage Types
Configure the types of damage which owned horses should be protected from in the config.yml file:
DamageProtection: - PROJECTILE - POISON - MELTING - MAGIC - CUSTOM - DROWNING - FIRE - FIRE_TICK - ENTITY_ATTACK - BLOCK_EXPLOSION - ENTITY_EXPLOSION - LIGHTNING - LAVA
All valid damage types and their descriptions can be found here
Permission Groups
You can set certain values for MyHorse for your groups in the config.yml file:
default: HorseNameColor: WHITE MaximumHorses: 3 Member: HorseNameColor: GOLD MaximumHorses: 10
All valid colors can be found here
Note that MyHorse will automatically detect your permission groups and write default settings in your config.yml.
Text
Not happy with the text of the plugin?
Just change the file /lang/english.yml to whatever you want!
Note that MyHorse auto-downloads the language file from my server at www.doggycraft.dk.
This can be disabled by using the DownloadLanguageFile setting in the config.yml.
Installation
Put the MyHorse.jar file in your /plugins folder and you are ready to go!
Commands
Command | Description |
---|---|
myhorse | Show the basic info |
myhorse name | Gives your selected horse a name |
myhorse comehere | Teleports your selected horse to you |
myhorse goaway | Sets your selecte horse free |
myhorse list | Lists all your owned horses |
myhorse goto <id> | Teleports to a specific horse from the list |
myhorse setowner <playername> | Sets a new owner for your selected horse |
myhorse addfriend <playername> | Adds a friend for your selected horse |
myhorse removefriend <playername> | Removes a friend for your selected horse |
myhorse kill | Kills your selected horse |
myhorse reload | Reloads configuration from disk |
myhorse sell <amount> | Sets your selected horse for sale |
myhorse claim | Claims the horse you have mounted |
myhorse select <id> | Selects a horse from your list |
myhorse spawn <horsetype> <baby> | Spawn a horse of a specific type |
Permission Nodes
- myhorse.* - Player can do everything below
- myhorse.list - Player can see a list of his owned horses
- myhorse.goto - Player can teleport to his owned horses
- myhorse.comehere - Player can teleport his selected horse to himself
- myhorse.lock - Player can lock his horse
- myhorse.unlock - Player can unlock his horse
- myhorse.name - Player can name his horse
- myhorse.setowner - Player can set new owner for his horse
- myhorse.addfriend - Player can add friends for his horse
- myhorse.removefriend - Player can remove friends for his horse
- myhorse.info - Player can display info about his horse
- myhorse.buy - Player can buy horses
- myhorse.sell - Player can sell horses
- myhorse.goaway - Player can set his selected horse free
- myhorse.kill - Player can kill his selected horse
- myhorse.claim - Player can claim un-owned horses
- myhorse.select - Player can select a horse from his list of owned horses
- myhorse.help - Player can see the help page
- myhorse.bypass.mount - Player can bypass mount protection
- myhorse.bypass.leash - Player can bypass leash protection
- myhorse.bypass.inventory - Player can bypass inventory protection
- myhorse.admin - Player can operate on a horse owned by any player
- myhorse.spawn - Player can spawn horses
- myhorse.updates - Player gets notifications about updates to MyHorse
Configuration
Setting | Description | Default Value |
---|---|---|
Settings.ServerName | Name of the server | "Your Server" |
Settings.Worlds | List of worlds in which MyHorse is enabled | <list of world names> |
Settings.DamageProtection | What types of damage are horses protected from? | <list> |
Settings.AllowChestsOnAllHorses | Players are able to put a chest on any type of horse | false |
Settings.DownloadLanguageFile | Should MyHorse auto-download language file? | true |
Settings.MetricsOptOut | Do not send metrics to mcstats.org | false |
Settings.DisplayUpdateNotifications | Show notifications about new updates to MyHorse | true |
Disclaimers
This plugin contacts curse.com and checks for newer versions by using the Curse ServerMOD API.
Opting out of this service can be done by editing config.yml and changing DisplayUpdateNotifications to false.
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
A unique identifier
The server's version of Java
Whether the server is in offline or online mode
The plugin's version
The server's version
The OS version/name and architecture
The core count for the CPU
The number of players online
The Metrics version
Opting out of this service can be done by editing config.yml and changing MetricsOptOut to true.
Want to contribute? MyHorse is open source!
Check out the official repository on github
@DoggyOnFire stopped the server and deleted MyHorse 0.0.2 and it's folder. copied MyHorse 0.04 to /plugins started the server to generate config flies, stopped the server, started it again:
horses.yml is still an empty file. for whatever reason one of my horses has vanished. sitting on another tamed horse and typing /myhorse setowner gives "no horse selected" error, same with /myhorse lock. But no console errors so that's good!
I have to run for now, cheers!
@DoggyOnFire
sure i'll get back to you in a few minutes.
@misterbiskits
Could you see what happens with the newest version of MyHorse?
@DoggyOnFire thank you for your reply, there are approx 8 previously tamed horses in the world. plugins/MyHorse/horses.yml is empty (has no entries at all). if it helps here are relevant entries fron server.log:
@misterbiskits
It seems like this is caused by the "old format" of storing horse ID's in horses.yml.
If there are any horses with only numeric ID's in there (for example 3453) those entries must be deleted from the file.
Thanks for the plugin. Commands aren't working, I either get "invalid myhorse command" or internal errors like this one: (horse was tamed before installing plugin)
I have a problem, the plugin gives me error even put commands like / myHorse comehere and users can not bring their horses to them and cause a big problem for them.
@NolanSyKinsley
Yes that is pretty fail. I have now made it possible to use /myhorse comehere for horses in unloaded chunks in MyHorse 0.0.4.
@wpb1216
Select a horse by mounting it.
@iPadHD
Sounds great, thanks! :)
Please post me a link and i'll put the tutorial here
Just uploaded version 0.0.4 here
@NolanSyKinsley
I have added prevention of other players using a leash on your horse.
Those other errors should also be more or less fixed by now.
@waterbucket123
The horse that you are trying to teleport has to be in a loaded chunk. So either another player has to be near it, or you have to use some sort of chunkloader where there horse is. Craftbook has some, other than that there is only FTB/Tekkit style chunkloaders/world anchors.
After a certain distance the horse dont teleport to you with the command /myhorse comehere
Not sure if this is a bug or if its normal
How do I select a horse?
I am creating a plugin showcase on this plugin! Should be done by tommow. Youtube.Com/AryeGaming
Apparently it only works for horses tamed AFTER the plugin was installed, if you attempt to name a older horse it gives an internal error.
Also, the list and goto commands does not work at all, and I keep getting "CONSOLE: [SEVERE] null" after every name command, but it does not seem to affect anything.
Also, another must have for this plugin, prevent other players from placing leads on your protected horse.
@TheChosenOne0113
Try restarting your server instead of reloading. As too many reloads tend to disrupt plugin functionality giving that message for every command.
I don't understand how to use this plugin. I've installed it, and every command I use I get "internal error" how do you select the horse to name?
how is selling going to work? player to player?
@Sega9507
No. I dont think i will do the barn/shops feature as it seems it will only make things more complicated.
Right now, players can transfer ownership of their horses with the /myhorse setowner command. This is a really simple and easy support for trading horses :)