diff --git a/pom.xml b/pom.xml index 08ca3566c4..1e3b84b420 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.palmergames.bukkit.towny Towny jar - 0.95.1.0 (1.13.2) + 0.95.1.0 for 1.13.2 diff --git a/resources/ChangeLog.txt b/resources/ChangeLog.txt index deb68f6094..bcac6a7908 100644 --- a/resources/ChangeLog.txt +++ b/resources/ChangeLog.txt @@ -3769,4 +3769,5 @@ v0.92.0.11: 0.95.1.0: - Bump version number for release. - Add server_type to bstats metrics, will show us what % uses Craftbukkit, Spigot & Paper. (Backported from 0.95.1.1 for 1.14) - - Special Release for 1.13.2 Servers + - Add nation_zones_enabled & database_type to bstats. + - Special Release for 1.13.2 Servers \ No newline at end of file diff --git a/src/com/palmergames/bukkit/towny/Towny.java b/src/com/palmergames/bukkit/towny/Towny.java index 2a53a766bf..7b8c4cda10 100644 --- a/src/com/palmergames/bukkit/towny/Towny.java +++ b/src/com/palmergames/bukkit/towny/Towny.java @@ -828,6 +828,20 @@ public String call() throws Exception { public String call() throws Exception { return Bukkit.getServer().getName(); } + })); + + metrics.addCustomChart(new Metrics.SimplePie("nation_zones_enabled", new Callable() { + @Override + public String call() throws Exception { + return String.valueOf(TownySettings.getNationZonesEnabled()); + } + })); + + metrics.addCustomChart(new Metrics.SimplePie("database_type", new Callable() { + @Override + public String call() throws Exception { + return TownySettings.getSaveDatabase(); + } })); }