Bukkit/CraftBukkit — pull request #1191 by bendude56 (2013-07-08 04:17:46+00:00)
Title: [B+C] Allow teleportation of entities on vehicles. Fixes BUKKIT-4210.

#### The Issue

When Minecraft 1.5 was released, teleportation code in the vanilla Minecraft server was changed so that any players on vehicles are dismounted before being teleported. Currently, the CraftBukkit code simply disallows teleportation when players are in vehicles.

#### Justification for PR

The behavior that CraftBukkit exhibits when teleporting players while in vehicles is different than the behavior of a vanilla Minecraft server under the same conditions. Any plugins which teleport players without first making sure they are dismounted may have their teleports unexpectedly fail. In order to keep consistent behavior, teleportation of other entities has also been modified to mimic this behavior.

#### PR Breakdown

This commit causes `CraftEntity.teleport(Location, TeleportCause)` to not return false if the entity is in a vehicle, and causes the entity to be dismounted before being teleported, if the event is not cancelled.

#### Testing Results and Materials

Testing was done by using the built-in /tp command to teleport between players, with one player in a boat when being teleported. In addition, teleportation with both players as normal was tested.

#### JIRA Ticket

BUKKIT-4210 - https://bukkit.atlassian.net/browse/BUKKIT-4210

#### Relevant PR(s)

...