Skip to content

Commit

Permalink
Fix total claims calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
NahuLD committed Sep 1, 2023
1 parent 9cc3a70 commit e05af0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public String onRequest(OfflinePlayer p, @NotNull String identifier) {
*/

if (identifier.startsWith("totalclaims")) {
int totalClaims = pd.getClaims().size() + pd.getAccruedClaimBlocks();
int totalClaims = pd.getBonusClaimBlocks() + pd.getAccruedClaimBlocks();
return identifier.endsWith("formatted") ? fixMoney(totalClaims) : String.valueOf(totalClaims);
}

Expand All @@ -154,7 +154,7 @@ public String onRequest(OfflinePlayer p, @NotNull String identifier) {
*/

if (identifier.startsWith("usedclaims")) {
int totalClaims = pd.getClaims().size() + pd.getAccruedClaimBlocks();
int totalClaims = pd.getBonusClaimBlocks() + pd.getAccruedClaimBlocks();
int remainingClaims = pd.getRemainingClaimBlocks();

int usedClaims = totalClaims - remainingClaims;
Expand Down

0 comments on commit e05af0e

Please sign in to comment.