Class GarageOpenEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class GarageOpenEvent extends CancellableEvent
This event gets fired when a player opens a garage;
  • Constructor Details

    • GarageOpenEvent

      public GarageOpenEvent(org.bukkit.entity.Player player, Garage garage)
      Construct a new GarageOpenEvent.
      Parameters:
      player - The Player that opens the garage.
      garage - The Garage garage that is opened.
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      The Player that opens the garage.
    • getGarage

      public Garage getGarage()
      The String displayName of the menu the player opens.
    • setGarage

      public void setGarage(Garage garage)
      The String displayName of the menu the player opens.