Class VehiclePickUpEvent

java.lang.Object
org.bukkit.event.Event
nl.mtvehicles.core.infrastructure.models.MTVEvent
nl.mtvehicles.core.events.VehiclePickUpEvent
All Implemented Interfaces:
CanEditLicensePlate, HasVehicle, IsCancellable, org.bukkit.event.Cancellable

public class VehiclePickUpEvent extends MTVEvent implements IsCancellable, org.bukkit.event.Cancellable, CanEditLicensePlate
On vehicle pick up
  • Constructor Details

    • VehiclePickUpEvent

      public VehiclePickUpEvent()
  • Method Details

    • setCancelled

      public void setCancelled(boolean cancelled)
      Description copied from interface: IsCancellable
      Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Specified by:
      setCancelled in interface IsCancellable
      Parameters:
      cancelled - true if you wish to cancel this event
    • getLicensePlate

      public String getLicensePlate()
      Description copied from interface: HasVehicle
      Get license plate of the vehicle used in the event
      Specified by:
      getLicensePlate in interface HasVehicle
      Returns:
      Vehicle's license plate
    • setLicensePlate

      public void setLicensePlate(String licensePlate)
      Description copied from interface: CanEditLicensePlate
      Set the license plate of the vehicle used in the event
      Specified by:
      setLicensePlate in interface CanEditLicensePlate
      Parameters:
      licensePlate - New license plate