Bukkit/Bukkit — pull request #929 by lolzballs (2013-09-15 18:05:49+00:00)
Title: [B + C] Implement cancelling of VehicleMoveEvent

##### The Issue:

Currently, there is no way to cancel a vehicles movement.

##### Justification:

Some plugin developers(like me), need to prevent a Minecart from moving. If you teleported the Minecart, it would cause another VehicleMoveEvent making an infinite loop, which is bad.

##### Breakdown:

All this does is make the VehicleMoveEvent implement Cancellable and add the basic cancel stuff. In CraftBukkit it checks to see if the event was cancelled and if it is, it set's the vehicles location back to its previous location.

##### Testing Results and Materials:

Test plugin code: https://gist.github.com/lolzballs/6573032
Built CraftBukkit with changes in Bukkit and CB, and put a minecart on a rail. The minecart does not move.

##### Relevant PR(s):

I found one but it wasn't following the proper guidelines.
CB Implementation here...

##### JIRA Ticket:
BUKKIT-4753 - https://bukkit.atlassian.net/browse/BUKKIT-4753