Class FabledSkyListener
java.lang.Object
xyz.geik.farmer.integrations.fabledskyblock.FabledSkyListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Fabledskyblock integration listener class
- Author:
- mehmet-27
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
islandJoinEvent
(@NotNull com.craftaro.skyblock.api.event.player.PlayerIslandJoinEvent e) Adds user to farmervoid
onIslandCreate
(com.craftaro.skyblock.api.event.island.IslandCreateEvent event) Automatically creates a farmer when island is createdvoid
onIslandDelete
(@NotNull com.craftaro.skyblock.api.event.island.IslandDeleteEvent event) Remove farmer on island deletevoid
onIslandResetEvent
(@NotNull com.craftaro.skyblock.api.event.island.IslandLevelChangeEvent event) Remove farmer on island resetvoid
teamKickEvent
(@NotNull com.craftaro.skyblock.api.event.player.PlayerIslandLeaveEvent e) Removes user from farmer if added on kickvoid
teamLeaveEvent
(@NotNull com.craftaro.skyblock.api.event.island.IslandKickEvent e) Removes user from farmer if added on leavevoid
transferIslandEvent
(@NotNull com.craftaro.skyblock.api.event.island.IslandOwnershipTransferEvent event) Change farmer owner on island transfer
-
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
-