Created
July 11, 2020 16:38
-
-
Save bigpresh/db4a109b5d5514da0009b575b86d9dd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler | |
public void checkVehicleDismount(VehicleExitEvent e) { | |
// If this was an auto-minecart, destroy it | |
Vehicle vehicle = e.getVehicle(); | |
if (vehicle.hasMetadata("autominecart")) { | |
vehicle.remove(); | |
debugmsg("Destroyed an auto-minecart"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment