Interface ProcessTrustUserEvent

All Superinterfaces:
net.kyori.event.Cancellable, ClaimEvent, Event, TrustClaimEvent

public interface ProcessTrustUserEvent extends TrustClaimEvent
Represents an event that is called before GD processes a player's trust.

This event allows a plugin to override a player's trust based on it's needs.

  • Method Details

    • getOriginalTrustResult

      TrustResult getOriginalTrustResult()
      The original trust result for User.
      Returns:
      The original trust result
    • getFinalTrustResult

      TrustResult getFinalTrustResult()
      The final trust result for User. Note: If not changed, this will be same as original result.
      Returns:
      The final trust result
    • getUser

      User getUser()
      Gets the User trust target
      Returns:
      The user trust target
    • getLocation

      @Nullable Object getLocation()
      Gets the trust action location.

      Note: This is only available during flag permission checks.
      Returns:
      The trust action location, if available
    • setNewTrustResult

      void setNewTrustResult(TrustResult result)
      Sets a new trust result for User replacing the original.
      Parameters:
      result - The new trust result