updated bStats to 1.7

This commit is contained in:
mfnalex 2020-05-19 23:00:44 +02:00
parent efaa9ce56e
commit 0bd2c1b730
3 changed files with 4 additions and 9 deletions

View File

@ -4,6 +4,7 @@
- Changed description for hotkeys in config.yml
- Updated French translation
- Updated Chinese (Traditional) translation
- Updated bStats to version 1.7
## 7.6
- Added automatic inventory sorting (disabled by default). Can be activated by using /invsort on

View File

@ -95,7 +95,7 @@
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>1.6</version>
<version>1.7</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -359,8 +359,8 @@ public class JeffChestSortPlugin extends JavaPlugin {
private void registerMetrics() {
// Metrics will need json-simple with 1.14 API.
//Metrics bStats = new Metrics(this,3089); // Metrics will need plugin ID with bStats 1.7+
Metrics bStats = new Metrics(this);
Metrics bStats = new Metrics(this,3089);
bStats.addCustomChart(new Metrics.SimplePie("sorting_method", () -> sortingMethod));
bStats.addCustomChart(new Metrics.SimplePie("config_version",
() -> Integer.toString(getConfig().getInt("config-version", 0))));
@ -392,12 +392,6 @@ public class JeffChestSortPlugin extends JavaPlugin {
bStats.addCustomChart(new Metrics.SimplePie("hotkey_shift_right_click",
() -> Boolean.toString(getConfig().getBoolean("hotkeys.shift-right-click"))));
// try {
// MetricsLite mcstats = new MetricsLite(this);
// mcstats.start();
// } catch (IOException e) {
//
// }
}
// Saves default category files, when enabled in the config