Skip to content

Commit

Permalink
allow {MIN} placeholder to be used in scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
steve4744 committed Nov 24, 2024
1 parent 9078777 commit e8d15c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/tntrun/arena/handlers/ScoreboardHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void updateWaitingScoreboard(Player player) {
s = s.replace("{COUNT}", arena.getGameHandler().count + "");
s = s.replace("{VOTES}", arena.getPlayerHandler().getVotesRequired(arena) + "");
s = s.replace("{DJ}", arena.getPlayerHandler().getDoubleJumps(player.getName()) + "");
s = s.replace("{MIN}", String.valueOf(arena.getStructureManager().getMinPlayers()));

o.getScore(plugin.getScoreboardManager().getTeamEntry(scoreboard, size, s)).setScore(size);
size--;
Expand Down Expand Up @@ -109,6 +110,7 @@ private void updatePlayingScoreboard(Player player) {
s = s.replace("{LOST}", arena.getGameHandler().lostPlayers + "");
s = s.replace("{LIMIT}", arena.getGameHandler().getTimeRemaining()/20 + "");
s = s.replace("{DJ}", arena.getPlayerHandler().getDoubleJumps(player.getName()) + "");
s = s.replace("{MIN}", String.valueOf(arena.getStructureManager().getMinPlayers()));

o.getScore(plugin.getScoreboardManager().getTeamEntry(scoreboard, size, s)).setScore(size);
size--;
Expand Down

0 comments on commit e8d15c4

Please sign in to comment.