mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-10 04:31:06 +00:00
Added Graph "Database Type" to Statistics Page
Statistics Page: http://mcstats.org/plugin/ShopChest
This commit is contained in:
parent
3ff0b4c556
commit
ce2c812b27
@ -113,6 +113,31 @@ public class ShopChest extends JavaPlugin {
|
||||
|
||||
});
|
||||
|
||||
Graph databaseType = metrics.createGraph("Database Type");
|
||||
databaseType.addPlotter(new Plotter("SQLite") {
|
||||
|
||||
@Override
|
||||
public int getValue() {
|
||||
if (Config.database_type() == Database.DatabaseType.SQLite)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
databaseType.addPlotter(new Plotter("MySQL") {
|
||||
|
||||
@Override
|
||||
public int getValue() {
|
||||
if (Config.database_type() == Database.DatabaseType.MySQL)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
metrics.start();
|
||||
} catch (IOException e) {
|
||||
logger.severe("Could not submit stats.");
|
||||
|
Loading…
Reference in New Issue
Block a user