mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-06 00:18:36 +01:00
Moved BSTATS_ID to the BStats class
This commit is contained in:
parent
979fc021d0
commit
e322f4047a
@ -14,8 +14,9 @@ import world.bentobox.bentobox.api.flags.Flag;
|
||||
*/
|
||||
public class BStats {
|
||||
|
||||
private static final int BSTATS_ID = 3555;
|
||||
|
||||
private final BentoBox plugin;
|
||||
private final int bstatsId;
|
||||
private Metrics metrics;
|
||||
|
||||
/**
|
||||
@ -25,14 +26,13 @@ public class BStats {
|
||||
*/
|
||||
private int islandsCreatedCount = 0;
|
||||
|
||||
BStats(BentoBox plugin, int bstatsId) {
|
||||
BStats(BentoBox plugin) {
|
||||
this.plugin = plugin;
|
||||
this.bstatsId = bstatsId;
|
||||
}
|
||||
|
||||
void registerMetrics() {
|
||||
if (metrics == null) {
|
||||
metrics = new Metrics(plugin, bstatsId);
|
||||
metrics = new Metrics(plugin, BSTATS_ID);
|
||||
registerCustomMetrics();
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,6 @@ public class BentoBox extends JavaPlugin {
|
||||
// Metrics
|
||||
@Nullable
|
||||
private BStats metrics;
|
||||
private static final int BSTATS_ID = 3555;
|
||||
|
||||
private Config<Settings> configObject;
|
||||
|
||||
@ -196,7 +195,7 @@ public class BentoBox extends JavaPlugin {
|
||||
flagsManager.registerListeners();
|
||||
|
||||
// Load metrics
|
||||
metrics = new BStats(this, BSTATS_ID);
|
||||
metrics = new BStats(this);
|
||||
metrics.registerMetrics();
|
||||
|
||||
// Register Multiverse hook - MV loads AFTER BentoBox
|
||||
|
Loading…
Reference in New Issue
Block a user