Class VehicleClickListener

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

public class VehicleClickListener extends MTVListener
On vehicle right click - entering and picking up
  • Constructor Details

    • VehicleClickListener

      public VehicleClickListener()
  • Method Details

    • onPlayerInteractAtEntity

      public void onPlayerInteractAtEntity(org.bukkit.event.player.PlayerInteractAtEntityEvent event)
    • placeVehicle

      public static void placeVehicle(String licensePlate, org.bukkit.entity.Player p)
      Deprecated.
      This method has been refactored to VehicleUtils.enterVehicle(String, Player) because it simply has nothing to do with placing the vehicle (see VehicleUtils.spawnVehicle(String, Location) for that).
      Create VehicleData (necessary for driving to work) and make player enter a vehicle.
      Parameters:
      licensePlate - Vehicle's license plate
      p - Player who is entering the vehicle