4243444546474849505152
// Timings Graph Graph timingsGraph = metrics.createGraph("Percentage of servers using timings"); if (mcMMO.p.getServer().getPluginManager().useTimings()) { timingsGraph.addPlotter(new Metrics.Plotter("Enabled") { @Override public int getValue() { return 1; } });
5051525354555657585960
return 1; } }); } else { timingsGraph.addPlotter(new Metrics.Plotter("Disabled") { @Override public int getValue() { return 1; } });
979899100101102103104105106107
version = majorVersion + "~=~" + subVersion; haveVersionInformation = true; } if (haveVersionInformation) { versionDonutGraph.addPlotter(new Metrics.Plotter(version) { @Override public int getValue() { return 1; } });
109110111112113114115116117118119
// Official v Custom build Graph Graph officialGraph = metrics.createGraph("Built by official ci"); if (isOfficialBuild) { officialGraph.addPlotter(new Metrics.Plotter("Yes") { @Override public int getValue() { return 1; } });
117118119120121122123124125126127
return 1; } }); } else { officialGraph.addPlotter(new Metrics.Plotter("No") { @Override public int getValue() { return 1; } });
129130131132133134135136137138139
// Chunkmeta enabled Graph Graph chunkmetaGraph = metrics.createGraph("Uses Chunkmeta"); if (HiddenConfig.getInstance().getChunkletsEnabled()) { chunkmetaGraph.addPlotter(new Metrics.Plotter("Yes") { @Override public int getValue() { return 1; } });
137138139140141142143144145146147
return 1; } }); } else { chunkmetaGraph.addPlotter(new Metrics.Plotter("No") { @Override public int getValue() { return 1; } });
149150151152153154155156157158159
// Storage method Graph Graph storageGraph = metrics.createGraph("Storage method"); if (Config.getInstance().getUseMySQL()) { storageGraph.addPlotter(new Metrics.Plotter("SQL") { @Override public int getValue() { return 1; } });
157158159160161162163164165166167
return 1; } }); } else { storageGraph.addPlotter(new Metrics.Plotter("Flatfile") { @Override public int getValue() { return 1; } });
168169170171172173174175176177178
} // Locale Graph Graph localeGraph = metrics.createGraph("Locale"); localeGraph.addPlotter(new Metrics.Plotter(LocaleLoader.getCurrentLocale().getDisplayLanguage(Locale.US)) { @Override public int getValue() { return 1; } });