Class TownyListener
java.lang.Object
xyz.geik.farmer.integrations.townyadvanced.TownyListener
- All Implemented Interfaces:
org.bukkit.event.Listener
TownyAdvanced listener class
- Since:
- v6-b001
- Author:
- amownyy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createTownEvent
(@NotNull com.palmergames.bukkit.towny.event.NewTownEvent e) Automatically creates farmer when town is createdvoid
disbandEvent
(@NotNull com.palmergames.bukkit.towny.event.DeleteTownEvent e) Remove farmer on town deletionvoid
townResidentAddEvent
(@NotNull com.palmergames.bukkit.towny.event.TownAddResidentEvent e) Adds user to farmervoid
townResidentRemoveEvent
(@NotNull com.palmergames.bukkit.towny.event.TownRemoveResidentEvent e) Removes user from farmervoid
transferTown
(@NotNull com.palmergames.bukkit.towny.event.town.TownMayorChangeEvent e) Transfers farmer when town transfer
-
Constructor Details
-
TownyListener
public TownyListener()Constructor of class
-
-
Method Details
-
disbandEvent
public void disbandEvent(@NotNull @NotNull com.palmergames.bukkit.towny.event.DeleteTownEvent e) Remove farmer on town deletion- Parameters:
e
- of event
-
createTownEvent
public void createTownEvent(@NotNull @NotNull com.palmergames.bukkit.towny.event.NewTownEvent e) Automatically creates farmer when town is created- Parameters:
e
- of event
-
transferTown
public void transferTown(@NotNull @NotNull com.palmergames.bukkit.towny.event.town.TownMayorChangeEvent e) Transfers farmer when town transfer- Parameters:
e
- transfer town event
-
townResidentAddEvent
public void townResidentAddEvent(@NotNull @NotNull com.palmergames.bukkit.towny.event.TownAddResidentEvent e) Adds user to farmer- Parameters:
e
- of event
-
townResidentRemoveEvent
public void townResidentRemoveEvent(@NotNull @NotNull com.palmergames.bukkit.towny.event.TownRemoveResidentEvent e) Removes user from farmer- Parameters:
e
- of event
-