Bump bstatsVersion from 1.4 to 1.8 in /Plan (#1706)

* Bump bstatsVersion from 1.4 to 1.8 in /Plan

Bumps `bstatsVersion` from 1.4 to 1.8.

Updates `bstats-bukkit` from 1.4 to 1.8
- [Release notes](https://github.com/Bastian/bStats-Metrics/releases)
- [Commits](https://github.com/Bastian/bStats-Metrics/commits)

Updates `bstats-sponge` from 1.4 to 1.8
- [Release notes](https://github.com/Bastian/bStats-Metrics/releases)
- [Commits](https://github.com/Bastian/bStats-Metrics/commits)

Updates `bstats-bungeecord` from 1.4 to 1.8
- [Release notes](https://github.com/Bastian/bStats-Metrics/releases)
- [Commits](https://github.com/Bastian/bStats-Metrics/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update bStats construction

Affects issues:
- Possibly fixed #1680

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Risto Lahtela <24460436+Rsl1122@users.noreply.github.com>
This commit is contained in:
dependabot-preview[bot] 2021-01-20 16:43:37 +02:00 committed by GitHub
parent c878e71179
commit 63bc4a667a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View File

@ -90,7 +90,7 @@ subprojects {
ext.geoIpVersion = "2.15.0"
ext.gsonVersion = "2.8.6"
ext.guavaVersion = "28.0-jre"
ext.bstatsVersion = "1.4"
ext.bstatsVersion = "1.8"
ext.placeholderapiVersion = "2.10.9"
ext.nkPlaceholderapiVersion = "1.3-SNAPSHOT"

View File

@ -30,7 +30,7 @@ public class BStatsBukkit {
public void registerMetrics() {
if (metrics == null) {
metrics = new Metrics(plugin);
metrics = new Metrics(plugin, 1240);
}
registerConfigSettingGraphs();
}

View File

@ -36,7 +36,8 @@ public class BStatsBungee {
public void registerMetrics() {
if (metrics == null) {
metrics = new Metrics(plugin);
int pluginId = 3085;
metrics = new Metrics(plugin, pluginId);
}
registerConfigSettingGraphs();
}

View File

@ -63,7 +63,7 @@ import java.util.Optional;
public class PlanSponge extends SpongePlugin implements PlanPlugin {
@com.google.inject.Inject
private Metrics2 metrics;
private Metrics2.Factory metrics;
@com.google.inject.Inject
private Logger slf4jLogger;
@ -96,8 +96,9 @@ public class PlanSponge extends SpongePlugin implements PlanPlugin {
locale = system.getLocaleSystem().getLocale();
system.enable();
int pluginId = 3086;
new BStatsSponge(
metrics,
metrics.make(pluginId),
system.getDatabaseSystem().getDatabase()
).registerMetrics();