From 0ee5d5538bf751bc3b48179f8a1a5f8e3de27969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Mart=C3=ADnez=20Rinc=C3=B3n?= Date: Fri, 15 Sep 2017 17:53:10 +0200 Subject: [PATCH] I am not used to hocon... --- .../playerbalancer/settings/props/GeneralProps.java | 12 ++++++++++++ src/main/resources/default.conf | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) 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