Skip to content

Commit

Permalink
1.3.4 - Add
Browse files Browse the repository at this point in the history
```
settings
  # Times for countdown when near the end of contest
  time_countdown: 3
```
  • Loading branch information
VoChiDanh committed Jun 20, 2024
1 parent 5dfb025 commit f3c7d07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>net.danh</groupId>
<artifactId>MiningContest</artifactId>
<version>1.3.3</version>
<version>1.3.4</version>
<packaging>jar</packaging>

<name>MiningContest</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/danh/miningcontest/Contest/Mining.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void run() {
}
}
}
if (counter <= 10) {
if (counter <= FileManager.getConfig().getInt("settings.time_countdown")) {
for (Player p : MiningContest.getMiningContest().getServer().getOnlinePlayers()) {
p.sendMessage(ChatManager.colorize(Objects.requireNonNull(FileManager.getConfig().getString("message.contest_countdown")).replaceAll("#second#", String.valueOf(counter))));
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ settings:
contest_delay: 7200
# Number of players currently on the top of the contest (Recommended to leave 3 or 5)
contest_top_list: 3
# Times for countdown when nearly end of contest
time_countdown: 3
# Plugin's prefix
prefix: "&7[&fMining Contest&7]"
# The blocks listed below will be added with the corresponding number of points. For unlisted blocks their score will be +1
Expand Down Expand Up @@ -104,4 +106,4 @@ help:
- "&a/mc - View contest information"
- "&a/mc top - See the top of the contest"
# Config version / DO NOT CHANGE IT
version: 2
version: 3

0 comments on commit f3c7d07

Please sign in to comment.