Package nl.mtvehicles.core.listeners
Class VehicleClickListener
java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVListener
nl.mtvehicles.core.listeners.VehicleClickListener
- All Implemented Interfaces:
org.bukkit.event.Listener
On vehicle right click - entering and picking up
-
Field Summary
Fields inherited from class nl.mtvehicles.core.infrastructure.models.MTVListener
event, player
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onPlayerInteractAtEntity(org.bukkit.event.player.PlayerInteractAtEntityEvent event)
static void
placeVehicle(String licensePlate, org.bukkit.entity.Player p)
Deprecated.Methods inherited from class nl.mtvehicles.core.infrastructure.models.MTVListener
callAPI, callAPI, getAPI, isCancelled, setAPI
-
Constructor Details
-
VehicleClickListener
public VehicleClickListener()
-
-
Method Details
-
onPlayerInteractAtEntity
public void onPlayerInteractAtEntity(org.bukkit.event.player.PlayerInteractAtEntityEvent event) -
placeVehicle
Deprecated.This method has been refactored toVehicleUtils.enterVehicle(String, Player)
because it simply has nothing to do with placing the vehicle (seeVehicleUtils.spawnVehicle(String, Location)
for that).CreateVehicleData
(necessary for driving to work) and make player enter a vehicle.- Parameters:
licensePlate
- Vehicle's license platep
- Player who is entering the vehicle
-
VehicleUtils.enterVehicle(String, Player)
because it simply has nothing to do with placing the vehicle (seeVehicleUtils.spawnVehicle(String, Location)
for that).