Class FabledSkyListener

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

public class FabledSkyListener extends Object implements org.bukkit.event.Listener
Fabledskyblock integration listener class
Author:
mehmet-27
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of class
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    islandJoinEvent(@NotNull com.craftaro.skyblock.api.event.player.PlayerIslandJoinEvent e)
    Adds user to farmer
    void
    onIslandCreate(com.craftaro.skyblock.api.event.island.IslandCreateEvent event)
    Automatically creates a farmer when island is created
    void
    onIslandDelete(@NotNull com.craftaro.skyblock.api.event.island.IslandDeleteEvent event)
    Remove farmer on island delete
    void
    onIslandResetEvent(@NotNull com.craftaro.skyblock.api.event.island.IslandLevelChangeEvent event)
    Remove farmer on island reset
    void
    teamKickEvent(@NotNull com.craftaro.skyblock.api.event.player.PlayerIslandLeaveEvent e)
    Removes user from farmer if added on kick
    void
    teamLeaveEvent(@NotNull com.craftaro.skyblock.api.event.island.IslandKickEvent e)
    Removes user from farmer if added on leave
    void
    transferIslandEvent(@NotNull com.craftaro.skyblock.api.event.island.IslandOwnershipTransferEvent event)
    Change farmer owner on island transfer

    Methods inherited from class java.lang.Object

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

    • FabledSkyListener

      public FabledSkyListener()
      Constructor of class
  • Method Details

    • onIslandCreate

      public void onIslandCreate(com.craftaro.skyblock.api.event.island.IslandCreateEvent event)
      Automatically creates a farmer when island is created
      Parameters:
      event - listener event of create
    • onIslandDelete

      public void onIslandDelete(@NotNull @NotNull com.craftaro.skyblock.api.event.island.IslandDeleteEvent event)
      Remove farmer on island delete
      Parameters:
      event - listener event of delete
    • transferIslandEvent

      public void transferIslandEvent(@NotNull @NotNull com.craftaro.skyblock.api.event.island.IslandOwnershipTransferEvent event)
      Change farmer owner on island transfer
      Parameters:
      event - listener event of transfer
    • onIslandResetEvent

      public void onIslandResetEvent(@NotNull @NotNull com.craftaro.skyblock.api.event.island.IslandLevelChangeEvent event)
      Remove farmer on island reset
      Parameters:
      event - listener event of reset
    • islandJoinEvent

      public void islandJoinEvent(@NotNull @NotNull com.craftaro.skyblock.api.event.player.PlayerIslandJoinEvent e)
      Adds user to farmer
      Parameters:
      e - of event
    • teamLeaveEvent

      public void teamLeaveEvent(@NotNull @NotNull com.craftaro.skyblock.api.event.island.IslandKickEvent e)
      Removes user from farmer if added on leave
      Parameters:
      e - of event
    • teamKickEvent

      public void teamKickEvent(@NotNull @NotNull com.craftaro.skyblock.api.event.player.PlayerIslandLeaveEvent e)
      Removes user from farmer if added on kick
      Parameters:
      e - of event