Skip to content

Commit

Permalink
Update PlaceholderUtil.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Coccocoahelper authored Aug 30, 2024
1 parent c926d09 commit ff533b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/me/lrxh/practice/util/PlaceholderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ public String getHitCombo(Player player, Profile profile) {
String isNoCombo = scoreboardConfig.getString("MATCH.IN-MATCH.BOXING.COMBO-COUNTER.NO-COMBO");
String isOpponentCombo = scoreboardConfig.getString("MATCH.IN-MATCH.BOXING.COMBO-COUNTER.OPPONENT-COMBO");

isYourCombo = isAdvantage.replace("<your_combo>", Integer.toString(playerCombo));
isOpponentCombo = isDisadvantage.replace("<opponent_combo>", Integer.toString(opponentCombo));
isYourCombo = isYourCombo.replace("<your_combo>", Integer.toString(playerCombo));
isOpponentCombo = isOpponentCombo.replace("<opponent_combo>", Integer.toString(opponentCombo));

if (playerCombo > 1) {
return CC.translate(isYourCombo);
Expand Down Expand Up @@ -206,8 +206,8 @@ public String getAnotherHitCombo(Player player, Profile profile) {
String isNoCombo = scoreboardConfig.getString("MATCH.IN-MATCH.BOXING.ANOTHER-COMBO-COUNTER.NO-COMBO");
String isOpponentCombo = scoreboardConfig.getString("MATCH.IN-MATCH.BOXING.ANOTHER-COMBO-COUNTER.OPPONENT-COMBO");

isYourCombo = isAdvantage.replace("<your_combo>", Integer.toString(playerCombo));
isOpponentCombo = isDisadvantage.replace("<opponent_combo>", Integer.toString(opponentCombo));
isYourCombo = isYourCombo.replace("<your_combo>", Integer.toString(playerCombo));
isOpponentCombo = isOpponentCombo.replace("<opponent_combo>", Integer.toString(opponentCombo));

if (playerCombo > 1) {
return CC.translate(isYourCombo);
Expand Down

0 comments on commit ff533b1

Please sign in to comment.