Class VehicleBuyEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class VehicleBuyEvent extends CancellableVehicleEvent<VehicleModel>
This event gets fired before a Player buys a vehicle from the shop.
  • Constructor Details

    • VehicleBuyEvent

      public VehicleBuyEvent(VehicleModel vehicle, org.bukkit.entity.Player buyingPlayer)
      Construct a new VehicleBuyEvent.
      Parameters:
      vehicle - The VehicleModel that will be bought.
      buyingPlayer - The Player that buys the vehicle.
  • Method Details

    • getBuyingPlayer

      public org.bukkit.entity.Player getBuyingPlayer()
      The Player that buys the vehicle.