// load settings
Settings.setupVariables();
// initialise metrics
try {
Metrics metrics = new Metrics(Citizens.this);
metrics.addCustomData(new Plotter() {
@Override
public String getColumnName() {
return "Total NPCs";
}
@Override
public int getValue() {
return NPCManager.getList().size();
}
});
metrics.start();
} catch (IOException e) {
Messaging.log("unable to load metrics");
}
// register events per type