Class VehicleVoucherEvent

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

public class VehicleVoucherEvent extends MTVEvent implements IsCancellable, org.bukkit.event.Cancellable
On right click with a voucher
  • Constructor Details

    • VehicleVoucherEvent

      public VehicleVoucherEvent()
  • 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
    • getVoucherUUID

      public String getVoucherUUID()
      Get UUID of the car that will be given from the clicked voucher
      Returns:
      Car UUID
    • setVoucherUUID

      public void setVoucherUUID(String voucherUUID)
      Set a new UUID of the car that will be given from the clicked voucher
      Parameters:
      voucherUUID - New car UUID