Skip to content

Commit 0ee5d55

Browse files
committed
I am not used to hocon...
1 parent d773800 commit 0ee5d55

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/main/java/com/jaimemartz/playerbalancer/settings/props/GeneralProps.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public class GeneralProps {
2020
@Setting(value = "fallback-principal")
2121
private boolean fallbackPrincipal;
2222

23+
@Setting
24+
private String version;
25+
2326
public boolean isEnabled() {
2427
return enabled;
2528
}
@@ -60,6 +63,14 @@ public void setFallbackPrincipal(boolean fallbackPrincipal) {
6063
this.fallbackPrincipal = fallbackPrincipal;
6164
}
6265

66+
public String getVersion() {
67+
return version;
68+
}
69+
70+
public void setVersion(String version) {
71+
this.version = version;
72+
}
73+
6374
@Override
6475
public String toString() {
6576
return "GeneralProps{" +
@@ -68,6 +79,7 @@ public String toString() {
6879
", autoReload=" + autoReload +
6980
", redisBungee=" + redisBungee +
7081
", fallbackPrincipal=" + fallbackPrincipal +
82+
", version='" + version + '\'' +
7183
'}';
7284
}
7385
}

src/main/resources/default.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ general {
1414
# When true, the plugin will get player counts from RedisBungee
1515
redis-bungee=false
1616

17-
# When true, the plugin will print less messages while loading
17+
# When true, this plugin will print less messages when loading
1818
silent=false
1919

2020
# Do not modify this
21-
version: "${project.version}"
21+
version="${project.version}"
2222
}
2323

2424
# Effectively remove (i.e comment) a message to disable it

0 commit comments

Comments
 (0)