Package com.griefdefender.api.event
Interface TaxClaimEvent
- All Superinterfaces:
net.kyori.event.Cancellable,ClaimEvent,Event
An event that is fired before a claim is taxed.
Note: Canceling this event will prevent claim being taxed.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the original tax amount for claim.doubleGets the original tax rate for claim.doubleGets the current total tax amount to be applied to claim.doubleGets the current tax rate to be applied to claim.voidsetTaxRate(double newTaxRate) Sets a new tax rate for claim.Methods inherited from interface net.kyori.event.Cancellable
cancelled, cancelledMethods inherited from interface com.griefdefender.api.event.ClaimEvent
getClaim, getClaims, getMessage, getSource, getSourceUser, setMessage
-
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.
-