I've been looking for a plugin to teleport horses with a player. The only one I've come across seems to be inactive (HorseTeleport). For example, if a player does /home or /spawn, I want the horse to teleport with them (assuming they are mounted on it). Is this possible or does one exist?
I'm currently working on a Horse RPG plugin. Maybe it has what you're looking for? At the moment players can only own one horse (unless the server owner modifies the horses database). Horse RPG: http://dev.bukkit.org/bukkit-plugins/horse-rpg/ Use "/hr spawn (or summon)" & "/hr banish" commands to summon/banish your horse. Soon though, I'll integrate Vault (economy), add horse skills, add multiple horse owning, buying/selling, etc.
I'm looking more for just simple straight up player+horse teleporting. I don't want any extras. If I type /spawn and I'm on a horse, the horse teleports with me to spawn.
I think he means when player types /spawn and they are on the horse they both will be tpd to spawn .. Last time checked if u were on horse and you typed /spawn it will not tp you there
For any dev who wants to do this, I pretty much made the code for you: Code:java package horseTeleport; import org.bukkit.entity.Entity;import org.bukkit.entity.EntityType;import org.bukkit.entity.Player;import org.bukkit.event.EventHandler;import org.bukkit.event.Listener;import org.bukkit.event.player.PlayerTeleportEvent; public class TeleportListener implements Listener { @EventHandler public void onTeleport(PlayerTeleportEvent event) { final Player player = event.getPlayer(); if(player.getVehicle() == null) return; final Entity entity = player.getVehicle(); if(entity.getType() != EntityType.HORSE) return; event.setCancelled(true); entity.teleport(event.getTo()); player.teleport(event.getTo()); entity.setPassenger(player); }} Just make the main class and register it.