Class VehicleGiveEvent
java.lang.Object
org.bukkit.event.Event
nl.sbdeveloper.vehiclesplus.api.events.Event
nl.sbdeveloper.vehiclesplus.api.events.VehicleEvent<VehicleModel>
nl.sbdeveloper.vehiclesplus.api.events.CancellableVehicleEvent<VehicleModel>
nl.sbdeveloper.vehiclesplus.api.events.impl.VehicleGiveEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
This event gets fired when a
CommandSender gives a OfflinePlayer a vehicle.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionVehicleGiveEvent(@NotNull VehicleModel vehicle, @NotNull org.bukkit.command.CommandSender commandSender, @NotNull Garage garage, @NotNull VehicleGiveEvent.Source source) Construct a newVehicleGiveEvent. -
Method Summary
Modifier and TypeMethodDescriptionThe garage who receives the vehicle.org.bukkit.command.CommandSenderThe sender who gives the vehicle.The source of the give.Methods inherited from class nl.sbdeveloper.vehiclesplus.api.events.CancellableVehicleEvent
isCancelled, setCancelledMethods inherited from class nl.sbdeveloper.vehiclesplus.api.events.VehicleEvent
getVehicleMethods inherited from class nl.sbdeveloper.vehiclesplus.api.events.Event
getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
VehicleGiveEvent
public VehicleGiveEvent(@NotNull @NotNull VehicleModel vehicle, @NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull Garage garage, @NotNull @NotNull VehicleGiveEvent.Source source) Construct a newVehicleGiveEvent.- Parameters:
vehicle- TheVehicleModelinvolved in this event.commandSender- The sender who gives the vehicle.garage- The garage who receives the vehicle.
-
-
Method Details
-
getSender
public org.bukkit.command.CommandSender getSender()The sender who gives the vehicle. -
getGarage
The garage who receives the vehicle. -
getSource
The source of the give.
-