The main ZHorse command is /zhorse, for which the alias /zh is provided.
You can create your own alias for all ZHorse commands by using the file commands.yml provided by Bukkit (see related tutorial).
Setting the current location to as your stable location
zh.stable.set
/zh stable unset
Remove your defined stable
zh.stable.unset
Advanced use
With command flags
If you want to use ZHorse in a deeper way, you can make use of command flags in any command, as long as you have the required permission.
Flags that require an argument (-i and -p) must be separated from their argument by a space. Thus, /zh heal -i 5 (where 5 is the horse ID) and /zh give Arod -p Z3dd7 (where Arod is the horse name and Z3dd7 the player name) are valid, but /zh heal -i5 or /zh give -p Arod Z3dd7 are not.
Flag
Description
Permission
‑a
Enable the admin mode for the command, allowing to override most of ZHorse protections (horse ownership, claim limit, horse stats thresholds, and much more).
zh.<command>.admin
‑i horse ID
The command will target the player's horse whose ID correspond to the one provided in horse ID, instead of targeting the horse currently mounted by the player.
‑p player
The command will target the horses of the player whose name correspond to the one provided in player, instead of the horses of the command sender.
Without command flags
If you don't understand how flags work or if don't want to use/remember them, you can just replace them with blanks or player/horse names. ZHorse will then try to automatically convert your command into a valid one in regard to command flags.
However, you cannot replace more than one flag at once (except for the -a flag), so if two flag parameters are required for a command (for example /zh give -i 5 -p Z3dd7), you must provide at least one of them (thus, /zh give Arod -p Z3dd7 and /zh give -i 5 Z3dd7 are valid but /zh give Arod Z3dd7 is not).
Flag
Substitute
‑a
A blank if the config option auto-admin is set to true for that command.
‑i horse ID
The horse name or a blank if you are not already mounting a horse. The flag will be replaced by the corresponding horse ID.
‑p player
The player name. The substitution consists only of omitting the flag -p.
Another trick is to define a favorite horse ID (1 by default) by the mean of the command /zh settings favorite and to leave the field of the horse ID/name blank (just as when you are mounting a horse) in order for it to be automatically replaced by your favorite horse ID.
Examples
Command
Effect
/zh help 2
Display the second page of commands you have access to.
/zh help ‑a
Display the first page of commands, including those you don't have access to. (Bypass any protection in the process)
/zh help ‑p Z3dd7
Display all commands Z3dd7 has access to.
/zh claim
Claim the horse you are mounting and give it a random name.
/zh claim Arod
Claim the horse you are mounting and give it the name Arod.
/zh claim ‑i 3 ‑a
Claim the horse of id 3 that is already belonging to you and give it its previous name. (Bypass any protection in the process)
/zh claim ‑i 2 Pegasus ‑p Z3dd7 ‑a
Claim the horse of id 2 belonging to Z3dd7 and give it the name Pegasus. (Bypass any protection in the process)
/zh give Z3dd7
Give you favorite horse (or the one you are mounting) to Z3dd7.
/zh tp ‑i 1
Teleport yourself to your horse of id 1.
/zh tp
Teleport yourself to your favorite horse (or the one you are mounting).
/zh here ‑p Z3dd7 ‑a ‑i 4
Teleport the horse of id 4 belonging to Z3dd7 to yourself. (Bypass any protection in the process)