Class TownyListener

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

public class TownyListener extends Object implements org.bukkit.event.Listener
TownyAdvanced listener class
Since:
v6-b001
Author:
amownyy
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of class
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createTownEvent(@NotNull com.palmergames.bukkit.towny.event.NewTownEvent e)
    Automatically creates farmer when town is created
    void
    disbandEvent(@NotNull com.palmergames.bukkit.towny.event.DeleteTownEvent e)
    Remove farmer on town deletion
    void
    townResidentAddEvent(@NotNull com.palmergames.bukkit.towny.event.TownAddResidentEvent e)
    Adds user to farmer
    void
    townResidentRemoveEvent(@NotNull com.palmergames.bukkit.towny.event.TownRemoveResidentEvent e)
    Removes user from farmer
    void
    transferTown(@NotNull com.palmergames.bukkit.towny.event.town.TownMayorChangeEvent e)
    Transfers farmer when town transfer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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