Class HomeSetEvent

java.lang.Object
org.bukkit.event.Event
fr.mathildeuh.youneedme.api.event.YnmPlayerEvent
fr.mathildeuh.youneedme.api.event.HomeSetEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class HomeSetEvent extends YnmPlayerEvent implements org.bukkit.event.Cancellable
Fired before a home is created or moved. Cancelling leaves any existing home untouched.
  • Constructor Details

    • HomeSetEvent

      public HomeSetEvent(org.bukkit.entity.Player player, String homeName, Position position, boolean overwrite)
  • Method Details

    • getHomeName

      public String getHomeName()
    • getPosition

      public Position getPosition()
    • isOverwrite

      public boolean isOverwrite()
      true if this call replaces an existing home of the same name rather than creating a new one.
    • 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
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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