Class LandsListener

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

public class LandsListener extends Object implements org.bukkit.event.Listener
Lands listener class
Since:
v6-b003
Author:
amownyy
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of class
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createLandEvent(me.angeschossen.lands.api.events.LandCreateEvent event)
    Automatically creates farmer when land is created
    void
    landJoinEvent(me.angeschossen.lands.api.events.LandTrustPlayerEvent event)
    Adds user to farmer
    void
    landKickEvent(me.angeschossen.lands.api.events.LandUntrustPlayerEvent event)
    Removes user from farmer if added when untrust
    void
    landLeaveEvent(me.angeschossen.lands.api.events.PlayerLeaveLandEvent event)
    Removes user from farmer if added when leave
    void
    removeLandEvent(me.angeschossen.lands.api.events.LandDeleteEvent event)
    Remove farmer on land deletion
    void
    transferLandEvent(me.angeschossen.lands.api.events.LandOwnerChangeEvent event)
    Transfers farmer when land transfer

    Methods inherited from class java.lang.Object

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

    • LandsListener

      public LandsListener()
      Constructor of class
  • Method Details

    • removeLandEvent

      public void removeLandEvent(me.angeschossen.lands.api.events.LandDeleteEvent event)
      Remove farmer on land deletion
      Parameters:
      event - of event
    • createLandEvent

      public void createLandEvent(me.angeschossen.lands.api.events.LandCreateEvent event)
      Automatically creates farmer when land is created
      Parameters:
      event - of event
    • transferLandEvent

      public void transferLandEvent(me.angeschossen.lands.api.events.LandOwnerChangeEvent event)
      Transfers farmer when land transfer
      Parameters:
      event - transfer land event
    • landJoinEvent

      public void landJoinEvent(me.angeschossen.lands.api.events.LandTrustPlayerEvent event)
      Adds user to farmer
      Parameters:
      event - of event
    • landLeaveEvent

      public void landLeaveEvent(me.angeschossen.lands.api.events.PlayerLeaveLandEvent event)
      Removes user from farmer if added when leave
      Parameters:
      event - of event
    • landKickEvent

      public void landKickEvent(me.angeschossen.lands.api.events.LandUntrustPlayerEvent event)
      Removes user from farmer if added when untrust
      Parameters:
      event - of event