Class RentEndEvent

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

public class RentEndEvent extends APIEvent implements org.bukkit.event.Cancellable
Fired when a rent is ended early by the renter or an admin. Cancel to prevent the rental from being terminated.
  • Constructor Details

    • RentEndEvent

      public RentEndEvent(@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