Class ASkyblockListener

java.lang.Object
xyz.geik.farmer.integrations.askyblock.ASkyblockListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class ASkyblockListener extends Object implements org.bukkit.event.Listener
ASky-block integration listeners
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of class
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onIslandDeleteEvent(@NotNull com.wasteofplastic.askyblock.events.IslandDeleteEvent e)
    Remove farmer on island deletion
    void
    onIslandOwnerChangeEvent(@NotNull com.wasteofplastic.askyblock.events.IslandChangeOwnerEvent e)
    Change farmer owner on island transfer
    void
    onIslandResetEvent(@NotNull com.wasteofplastic.askyblock.events.IslandResetEvent e)
    Remove farmer on island reset
    void
    onPlayerJoinEvent(@NotNull com.wasteofplastic.askyblock.events.TeamJoinEvent e)
    Removes user from farmer if added on leave
    void
    onPlayerKickEvent(@NotNull com.wasteofplastic.askyblock.events.TeamLeaveEvent e)
    Adds user to farmer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ASkyblockListener

      public ASkyblockListener()
      Constructor of class
  • Method Details

    • onIslandDeleteEvent

      public void onIslandDeleteEvent(@NotNull @NotNull com.wasteofplastic.askyblock.events.IslandDeleteEvent e)
      Remove farmer on island deletion
      Parameters:
      e - of event
    • onIslandResetEvent

      public void onIslandResetEvent(@NotNull @NotNull com.wasteofplastic.askyblock.events.IslandResetEvent e)
      Remove farmer on island reset
      Parameters:
      e - of event
    • onIslandOwnerChangeEvent

      public void onIslandOwnerChangeEvent(@NotNull @NotNull com.wasteofplastic.askyblock.events.IslandChangeOwnerEvent e)
      Change farmer owner on island transfer
      Parameters:
      e - of event
    • onPlayerKickEvent

      public void onPlayerKickEvent(@NotNull @NotNull com.wasteofplastic.askyblock.events.TeamLeaveEvent e)
      Adds user to farmer
      Parameters:
      e - of event
    • onPlayerJoinEvent

      public void onPlayerJoinEvent(@NotNull @NotNull com.wasteofplastic.askyblock.events.TeamJoinEvent e)
      Removes user from farmer if added on leave
      Parameters:
      e - of event