Skip to content

Commit

Permalink
Little bits.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Nov 13, 2019
1 parent 8b3f648 commit 56d8e41
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit.towny</groupId>
<artifactId>Towny</artifactId>
<packaging>jar</packaging>
<version>0.95.1.0 (1.13.2)</version>
<version>0.95.1.0 for 1.13.2</version>

<licenses>
<license>
Expand Down
3 changes: 2 additions & 1 deletion resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions src/com/palmergames/bukkit/towny/Towny.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>() {
@Override
public String call() throws Exception {
return String.valueOf(TownySettings.getNationZonesEnabled());
}
}));

metrics.addCustomChart(new Metrics.SimplePie("database_type", new Callable<String>() {
@Override
public String call() throws Exception {
return TownySettings.getSaveDatabase();
}
}));

}
Expand Down

0 comments on commit 56d8e41

Please sign in to comment.