Class RClaimListener

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

public class RClaimListener extends Object implements org.bukkit.event.Listener
RClaim Integration Listener class
Since:
25.08.2024
Author:
Weesli
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 well
    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
    void
    unTrustPlayer(net.weesli.rClaim.api.events.UnTrustedPlayerEvent e)
    If the requester removes a trusted player from the demand zone, farmer access is terminated

    Methods inherited from class java.lang.Object

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

      public void buyFarmer(FarmerBoughtEvent e)
      When the farmer is subsequently purchased, access is granted to all members in the Region.
      Parameters:
      e - Event of buyFarmer