Class VehicleEntityListener

java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVListener
nl.mtvehicles.core.listeners.VehicleEntityListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class VehicleEntityListener extends MTVListener
On vehicle left click - damaging, opening a trunk, fueling
  • Field Details

  • Constructor Details

    • VehicleEntityListener

      public VehicleEntityListener()
  • Method Details

    • onPlayerInteractAtEntity

      public void onPlayerInteractAtEntity(org.bukkit.event.entity.EntityDamageByEntityEvent event)
    • checkDamage

      @Deprecated public void checkDamage(String license)
      Deprecated.
      Renamed to damage(String).
      Damage a vehicle.
      Parameters:
      license - The vehicle's license plate
    • damage

      public void damage(String license)
      Damage a vehicle.
      Parameters:
      license - The vehicle's license plate