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 27, 2024
1 parent 8ee4761 commit 9caa3b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/me/lrxh/practice/util/PlaceholderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import me.lrxh.practice.profile.ProfileState;
import me.lrxh.practice.queue.QueueProfile;
import me.lrxh.practice.util.config.BasicConfigurationFile;
import org.bukkit.configuration.file.FileConfiguration
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

Expand Down Expand Up @@ -126,7 +127,7 @@ public String getDifference(Player player) {
Match match = profile.getMatch();
Integer playerHits = match.getGamePlayer(player).getHits();
Integer opponentHits = match.getGamePlayer(match.getOpponent(player.getUniqueId())).getHits();
BasicConfigurationFile scoreboardConfig = Practice.getInstance().getScoreboardConfig();
FileConfiguration scoreboardConfig = Practice.getInstance().getScoreboardConfig().getConfiguration();

String isAdvantage = scoreboardConfig.getString("MATCH.IN-MATCH-BOXING-ADVANTAGE");
String isTie = scoreboardConfig.getString("MATCH.IN-MATCH-BOXING-TIE");
Expand Down Expand Up @@ -162,4 +163,4 @@ public String getHitCombo(Player player, boolean isMMCCombo) {

return CC.translate(hitCombo);
}
}
}

0 comments on commit 9caa3b7

Please sign in to comment.