Class VehicleGiveEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class VehicleGiveEvent extends CancellableVehicleEvent<VehicleModel>
This event gets fired when a CommandSender gives a OfflinePlayer a vehicle.
  • 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 new VehicleGiveEvent.
      Parameters:
      vehicle - The VehicleModel involved 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

      public String getGarage()
      The garage who receives the vehicle.
    • getSource

      public VehicleGiveEvent.Source getSource()
      The source of the give.