Class RentStartEvent

java.lang.Object
org.bukkit.event.Event
me.tayebyassine.homestead.api.events.APIEvent
me.tayebyassine.homestead.api.events.rent.RentStartEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class RentStartEvent extends APIEvent implements org.bukkit.event.Cancellable
Fired when a rent is started and money is exchanged. Cancel to prevent the rental from being created.
  • Constructor Details

    • RentStartEvent

      public RentStartEvent(@NotNull @NotNull Region region, @Nullable @Nullable SubArea subArea, @NotNull @NotNull org.bukkit.OfflinePlayer renter, @NotNull @NotNull SeRent rent)
  • Method Details

    • getRegion

      @NotNull public @NotNull Region getRegion()
    • getSubArea

      @Nullable public @Nullable SubArea getSubArea()
    • getRenter

      @NotNull public @NotNull org.bukkit.OfflinePlayer getRenter()
    • getRent

      @NotNull public @NotNull SeRent getRent()
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Overrides:
      getHandlers in class APIEvent
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable