I am not used to hocon...

This commit is contained in:
Jaime Martínez Rincón 2017-09-15 17:53:10 +02:00
parent d773800a0d
commit 0ee5d5538b
2 changed files with 14 additions and 2 deletions

View File

@ -20,6 +20,9 @@ public class GeneralProps {
@Setting(value = "fallback-principal")
private boolean fallbackPrincipal;
@Setting
private String version;
public boolean isEnabled() {
return enabled;
}
@ -60,6 +63,14 @@ public class GeneralProps {
this.fallbackPrincipal = fallbackPrincipal;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
@Override
public String toString() {
return "GeneralProps{" +
@ -68,6 +79,7 @@ public class GeneralProps {
", autoReload=" + autoReload +
", redisBungee=" + redisBungee +
", fallbackPrincipal=" + fallbackPrincipal +
", version='" + version + '\'' +
'}';
}
}

View File

@ -14,11 +14,11 @@ general {
# When true, the plugin will get player counts from RedisBungee
redis-bungee=false
# When true, the plugin will print less messages while loading
# When true, this plugin will print less messages when loading
silent=false
# Do not modify this
version: "${project.version}"
version="${project.version}"
}
# Effectively remove (i.e comment) a message to disable it