diff --git a/pom.xml b/pom.xml
index d151b4a..7b63ebb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
net.danh
MiningContest
- 1.3.3
+ 1.3.4
jar
MiningContest
diff --git a/src/main/java/net/danh/miningcontest/Contest/Mining.java b/src/main/java/net/danh/miningcontest/Contest/Mining.java
index ab9a28d..e0ca46d 100644
--- a/src/main/java/net/danh/miningcontest/Contest/Mining.java
+++ b/src/main/java/net/danh/miningcontest/Contest/Mining.java
@@ -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))));
}
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index 2e5f25c..a3d7511 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -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
@@ -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
\ No newline at end of file
+version: 3
\ No newline at end of file