Player Files
Player Files
Player files are stored at plugins/PersonalHorses/players. Each player will have a file named after them with a .yml extension at this location. This file is created for the player, if one does not exist, whenever he or she tames his or her first horse.
File Layout
Each horse's entry will be headed by the horse's UUID. This allows for storage of unnamed horses. Each horse UUID has an associated name (will be a string constructed from the Color, Variant and Type for an unnamed horse), Riders, Leaders, and Inventory Access list. Riders are players allowed to ride the horse. Leaders are players allowed to attach a lead to the horse. Inventory Access is the list of players allowed to access the horse's inventory (if it has one). For technical reasons, the player who tames the horse is added to each of these lists upon taming the horse. Here is my example file (Ar7ific1al.yml) file from my local testing:
5e6b4045-d689-4b85-a3e7-05d6f6675685: Name: Awesome Horse Riders: Avoxsas Uu_VALKYRE_uU Ar7ific1al Leaders: Ar7ific1al Inventory Access: Ar7ific1al 0d667f2b-804e-404a-8d8f-58d361b5e98a: Name: Odisius Riders: Avoxsas Ar7ific1al Leaders: Ar7ific1al Inventory Access: Avoxsas Ar7ific1al 6c543318-9f28-4f2b-86ec-1f16aac4ebd9: Name: CHESTNUT WHITE HORSE Riders: Ar7ific1al Leaders: Ar7ific1al Inventory Access: Ar7ific1al
Comments