9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-29 11:59:11 +00:00
This commit is contained in:
Xiao-MoMi
2022-11-29 16:58:23 +08:00
parent 0bd8e447d0
commit f4c3f42cf0
13 changed files with 162 additions and 141 deletions

View File

@@ -76,8 +76,12 @@ public class TextCache {
.replace("{minute}", String.format("%02d", Competition.currentCompetition.getRemainingTime() / 60))
.replace("{second}",String.format("%02d", Competition.currentCompetition.getRemainingTime() % 60))
.replace("{score}", String.format("%.1f", Competition.currentCompetition.getScore(owner)))
.replace("{1st_player}", Competition.currentCompetition.getFirstPlayer())
.replace("{1st_score}", String.format("%.1f", Competition.currentCompetition.getFirstScore()))
.replace("{1st_player}", Competition.currentCompetition.getFirstPlayer());
.replace("{2nd_player}", Competition.currentCompetition.getSecondPlayer())
.replace("{2nd_score}", String.format("%.1f", Competition.currentCompetition.getSecondScore()))
.replace("{3rd_player}", Competition.currentCompetition.getThirdPlayer())
.replace("{3rd_score}", String.format("%.1f", Competition.currentCompetition.getThirdScore()));
if (!latestValue.equals(string)) {
latestValue = string;