Class RClaimListener
java.lang.Object
xyz.geik.farmer.integrations.rclaim.RClaimListener
- All Implemented Interfaces:
org.bukkit.event.Listener
RClaim Integration Listener class
- Since:
- 25.08.2024
- Author:
- Weesli
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
When the farmer is subsequently purchased, access is granted to all members in the Region.void
createClaim
(net.weesli.rClaim.api.events.ClaimCreateEvent e) When a player creates a claim, if the automatic farmer is on, a farmer is added to the claim point.void
deleteClaim
(net.weesli.rClaim.api.events.ClaimDeleteEvent e) When a claim is deleted, the farmer is removed as wellvoid
trustPlayer
(net.weesli.rClaim.api.events.TrustedPlayerEvent e) After a claimant adds a player to their territory, the added player is granted farmer accessvoid
unTrustPlayer
(net.weesli.rClaim.api.events.UnTrustedPlayerEvent e) If the requester removes a trusted player from the demand zone, farmer access is terminated
-
Constructor Details
-
RClaimListener
public RClaimListener()
-
-
Method Details
-
createClaim
public void createClaim(net.weesli.rClaim.api.events.ClaimCreateEvent e) When a player creates a claim, if the automatic farmer is on, a farmer is added to the claim point.- Parameters:
e
- Event of ClaimCrateEvent
-
trustPlayer
public void trustPlayer(net.weesli.rClaim.api.events.TrustedPlayerEvent e) After a claimant adds a player to their territory, the added player is granted farmer access- Parameters:
e
- Event of TrustedPlayerEvent
-
unTrustPlayer
public void unTrustPlayer(net.weesli.rClaim.api.events.UnTrustedPlayerEvent e) If the requester removes a trusted player from the demand zone, farmer access is terminated- Parameters:
e
- Event of UnTrustedPlayerEvent
-
deleteClaim
public void deleteClaim(net.weesli.rClaim.api.events.ClaimDeleteEvent e) When a claim is deleted, the farmer is removed as well- Parameters:
e
- Event of UnTrustedPlayerEvent
-
buyFarmer
When the farmer is subsequently purchased, access is granted to all members in the Region.- Parameters:
e
- Event of buyFarmer
-