Class VehicleRegionEnterEvent

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

public class VehicleRegionEnterEvent extends MTVEvent implements org.bukkit.event.Cancellable, HasVehicle
On region enter
  • Constructor Details

    • VehicleRegionEnterEvent

      public VehicleRegionEnterEvent(String licensePlate, String regionName)
  • Method Details

    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • 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
    • getRegionName

      public String getRegionName()