Class LandsListener
java.lang.Object
xyz.geik.farmer.integrations.lands.LandsListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Lands listener class
- Since:
- v6-b003
- Author:
- amownyy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createLandEvent
(me.angeschossen.lands.api.events.LandCreateEvent event) Automatically creates farmer when land is createdvoid
landJoinEvent
(me.angeschossen.lands.api.events.LandTrustPlayerEvent event) Adds user to farmervoid
landKickEvent
(me.angeschossen.lands.api.events.LandUntrustPlayerEvent event) Removes user from farmer if added when untrustvoid
landLeaveEvent
(me.angeschossen.lands.api.events.PlayerLeaveLandEvent event) Removes user from farmer if added when leavevoid
removeLandEvent
(me.angeschossen.lands.api.events.LandDeleteEvent event) Remove farmer on land deletionvoid
transferLandEvent
(me.angeschossen.lands.api.events.LandOwnerChangeEvent event) Transfers farmer when land transfer
-
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
-