Don’t expose the plugin version directly
[Sone.git] / src / main / java / net / pterodactylus / sone / main / SonePlugin.java
index bff0a49..f3e8dfc 100644 (file)
@@ -116,7 +116,7 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr
        }
 
        /** The version. */
-       public static final Version VERSION = new Version(0, 9, 5);
+       private static final Version VERSION = new Version(0, 9, 5);
 
        /** The current year at time of release. */
        private static final int YEAR = 2016;
@@ -175,6 +175,10 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr
                return l10n;
        }
 
+       public static String getPluginVersion() {
+               return VERSION.toString();
+       }
+
        public static int getYear() {
                return YEAR;
        }