Horsestats Plugin
HorseStats Plugin (1.14.4, 1.13.2) is no longer actively maintained.
Features
Stat Display
- The core purpose of HorseStats is to display a horse’s information in your chat window. Simply punch a horse with a lead in your hand to view it’s information in your chat window.
- As of version 5.0, stats also save to the item lore of the lead stack the horse was punched with.
- The item for the stat display is configurable in the HorseStats configuration file.
Teleportation
- HorseStats has horse teleportation capabilities. Punching a horse with an Ender Pearl in your hand will select or deselect that horse for teleporting. After a horse has been selected, you can use the command /htp to teleport the horse.
- The teleport function Bukkit/Spigot provides does not work if the entity’s containing chunk is unloaded.
- The horse will not “deselect” after one teleport operation, meaning you can chain multiple teleports over long distances. If your teleport fails for some reason however, it will deselect to prevent further problems.
- The item for teleporting is configurable in the HorseStats configuration file.
HorseStats Internal Permissions
- HorseStats has a permissions system that manages who has permission to access a player’s horses.
- This is not to be confused with the normal permissions system that a server uses; it is a separate, internal, HorseStats-only system!
- The command for viewing and managing who has permission to access your horses is /hperm.
- Permissions are separated into two types: damage and interaction.
- While permitted players are effectively treated as co-owners, they are not allowed to use /untame or /setowner.
Anarchy Mode
- Anarchy mode is a configuration setting that will bypass all ownership safeguards.
- If you are a grief or anarchy server, or you just don’t believe in locking down animals, then enabling this will disable the HorseStats Internal Permissions system and make all horses fair game.
- This will also disable the SQL connection from initiating.
Owner Tracking
- On occasion the vanilla game or another plugin can create a horse that has the tamed flag set, but no owner assigned.
- HorseStats can detect and correct this by force untaming these horses so that they can be re-tamed and have a proper owner assigned.
- This action is triggered when a player punches a horse with the stat display item.
- Skeleton horses that spawn in from lightning strikes are always flagged as tame without an owner. Because the above behavior would render them un-rideable, the lead user is instead made the owner immediately.
Commands
/horsestats
- Aliases: /hs
- Gives a short explanation to the user about using the plugin’s features.
/htp
- Teleports the selected horse to the command user. The user must have Access Rights in order to select it in the first place.
- If the chunk containing the horse unloads, then you will need a second player to stand by the horse to prevent the chunk from unloading, or the teleport will fail.
/delname
- Deletes the name of a horse. Only usable by players with Access Rights.
/delchest
- Deletes the chest of a horse. Only usable by players with Access Rights.
/untame
- Removes the player’s ownership of the horse they are riding. Only usable by owner and admins with “HorseStats.global-override” permission. Friends are ignored for this command.
[Moderators] /tame
- Tames an untamed horse. Cannot be used on a currently tamed horse.
/setowner <player>
- Transfers ownership of a horse directly to the specified player. Only usable by owner and admins with “HorseStats.global-override” permission. Friends are ignored for this command.
[Admins] /slayhorse <launch>
- Kills the horse being ridden. No regard for ownership. Optional launch argument for a bit of fun. The only real purpose of this is so admins can get around the HorseGrief config setting.
[Moderators] /setstyle <style>
- Changes the style pattern of a horse. Only usable by players with Access Rights.
[Moderators] /setcolor <color>
- Changes the color of a horse. Only usable by players with Access Rights.
[Moderators] /setstat <jump|health|speed> <value>
- Changes the health or jump height of a horse. Only usable by players with Access Rights.
/hperm <give | take | view> <player> <damage | use>
- Allows players to view and control who can access their horses.
- Command operates only if anarchy mode is not enabled.
- For the <player> argument, players can be specified by name (only if they are online) or by UUID (online status does not matter).
[Admins] /hspawn <donkey|mule>
- Spawns the entity specified with the argument, or a horse if no argument is given. Ex: “/hspawn” will spawn a horse, “/hspawn donkey” will spawn a donkey.
Permission Nodes:
[Super Admin] HorseStats.*
- Gives ALL permission nodes. No ifs ands or buts.
[Super Admin] HorseStats.global-override
- Allows someone to bypass ANY time the plugin checks to see if a player is an owner.
[Admins] HorseStats.slayhorse
- Allows use of /slayhorse.
[Admins] HorseStats.slayhorse.launch
- Allows use of the “launch” argument for /slayhorse. This permission is not included in “HorseStats.slayhorse”.
HorseStats.hperm
- Allows the use of /hperm.
[Admins] HorseStats.hspawn
- Allows the use of /hspawn.
[Super Admin] HorseStats.plugin-alerts
- Allows someone to receive messages about outdated config and no speed mode when they join the server.
[Moderators] HorseStats.setstyle
- Allows the use of /setstyle.
[Moderators] HorseStats.setcolor
- Allows the use of /setcolor.
[Moderators] HorseStats.setstat
- Allows the use of /setstat.
[Moderators] HorseStats.tame
- Allows use of /tame
HorseStats.untame
- Allows use of /untame.
HorseStats.setowner
- Allows use of /setowner
HorseStats.delname
- Allows use of /delname
HorseStats.delchest
- Allows use of /delchest
HorseStats.htp
- Allows use of /htp
Screenshots:
How to install:
- Download a plugin of your choice.
- Place the .jar and any other files in your plugins directory.
- Run the server and wait for it to fully load.
- Type stop in your Minecraft server console to bring the server to a clean stop.
- Run the server.
- All done! Your plugin should be installed and ready to be used.