Interface TaxClaimEvent

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

public interface TaxClaimEvent extends ClaimEvent, net.kyori.event.Cancellable
An event that is fired before a claim is taxed. Note: Canceling this event will prevent claim being taxed.
  • Method Details

    • getOriginalTaxRate

      double getOriginalTaxRate()
      Gets the original tax rate for claim.
      Returns:
      The original tax rate
    • getOriginalTaxAmount

      double getOriginalTaxAmount()
      Gets the original tax amount for claim.
      Returns:
      The original tax amount
    • getTaxRate

      double getTaxRate()
      Gets the current tax rate to be applied to claim.
      Returns:
      The current tax rate
    • getTaxAmount

      double getTaxAmount()
      Gets the current total tax amount to be applied to claim. Note: To adjust the tax amount, use {setTaxRate(double)
      Returns:
      The current total tax amount
    • setTaxRate

      void setTaxRate(double newTaxRate)
      Sets a new tax rate for claim.
      Parameters:
      newTaxRate - The new tax rate.