Allows player to spawn their own horse

Supported Games
works with

Features

  • Allows players with permission to spawn their own horses
  • Allows players with permission to spawn horses for other players
  • Permission based cooldown groups
  • NoEscape support
  • Check for inside/outside spawn attempts
  • Option to prevent looting spawned horses by non-owner players

Permissions

whereismyhorse.use - Allows using /horse command to summon a XIX century vehicle.whereismyhorse.useon - Allows spawning horses for other players. (Bypasses cooldown/NoEscape checks)

Chat Commands

  • /horse - attempts to spawn a horse at player's position
  • /horse <player name or id> - attempts to spawn a horse for another player

Configuration


{
  "Cooldowns": {
    "nocooldown": 0,
    "vip": 30
  },
  "Allow usage inside building": false,
  "Use NoEscape": true,
  "Prevent looting for non-owner": false
}

You can specify different permission names for cooldown times by using the Cooldown configuration field. Key of each key-value pair is the appender to whereismyhorse. permission name, so if you have value specified as "vip": 30, you have to grant player permission whereismyhorse.vip to allow this player to have command usage cooldown of 30 seconds (Default cooldown is 300 seconds)

Localization


{
  "No permission": "You have no access to that command.",
  "No point for spawn": "Cannot spawn horse at the current position.",
  "Can't spawn indoors": "You can use that command only when outside!",
  "Spawned": "Your horse has been spawned, sir! Don't forget to feed it!",
  "Cooldown": "You have called you horse recently, wait a bit, please. ({0} seconds left)",
  "Prefix": "[WHERE IS MY HORSE]",
  "NoEscape": "Can't use command while escape blocked!",
  "NRE": "Could not spawn a horse, it's null. Maybe next time?",
  "Horse nearby": "There is a horse very close, consider using it instead.",
  "Player not found": "Player {0} was not found.",
  "Horse spawned (on player)": "Horse was spawned for player {0}"
}

MIT License


Copyright (c) 2020 2CHEVSKII


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.