use of com.griefdefender.api.data.PlayerData in project Almura by AlmuraDev.
the class ServerClaimManager method claimTaxRate.
public double claimTaxRate(final Claim claim) {
if (claim != null) {
PlayerData playerData = GriefDefender.getCore().getPlayerData(claim.getWorldUniqueId(), claim.getOwnerUniqueId());
final double taxRate = playerData.getTaxRate(claim.getType());
return taxRate;
}
return 0;
}
use of com.griefdefender.api.data.PlayerData in project Almura by AlmuraDev.
the class ServerClaimManager method claimTaxes.
public double claimTaxes(final Claim claim) {
if (claim != null) {
PlayerData playerData = GriefDefender.getCore().getPlayerData(claim.getWorldUniqueId(), claim.getOwnerUniqueId());
final double taxRate = playerData.getTaxRate(claim.getType());
final double taxOwed = claim.getClaimBlocks() * taxRate;
return taxOwed;
}
return 0;
}
Aggregations