diff --git a/src/main/java/com/jaimemartz/playerbalancer/settings/props/GeneralProps.java b/src/main/java/com/jaimemartz/playerbalancer/settings/props/GeneralProps.java index c2d5206..281e2c8 100644 --- a/src/main/java/com/jaimemartz/playerbalancer/settings/props/GeneralProps.java +++ b/src/main/java/com/jaimemartz/playerbalancer/settings/props/GeneralProps.java @@ -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 + '\'' + '}'; } } diff --git a/src/main/resources/default.conf b/src/main/resources/default.conf index 3e1380f..bd57404 100644 --- a/src/main/resources/default.conf +++ b/src/main/resources/default.conf @@ -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