Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Coccocoahelper authored Aug 27, 2024
1 parent 3f8285b commit a00cdc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/me/lrxh/practice/util/PlaceholderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public String getDifference(Player player) {
String isAdvantage = scoreboardConfig.getString("MATCH.IN-MATCH-BOXING-ADVANTAGE");
String isTie = scoreboardConfig.getString("MATCH.IN-MATCH-BOXING-TIE");
String isDisadvantage = scoreboardConfig.getString("MATCH.IN-MATCH-BOXING-DISADVANTAGE");
isAdvantage.replaceAll("<advantage>", (playerHits - opponentHits).toString());
isDisadvantage.replaceAll("<disadvantage>", (opponentHits - playerHits).toString());
isAdvantage.replaceAll("<advantage>", Integer.toString(playerHits - opponentHits));
isDisadvantage.replaceAll("<disadvantage>", Integer.toString(opponentHits - playerHits));

if (playerHits - opponentHits > 0) {
return CC.translate(isAdvantage);
Expand Down

0 comments on commit a00cdc9

Please sign in to comment.