This commit is contained in:
fullwall 2012-11-19 13:08:11 +08:00
parent 7675620594
commit c981e93c50

View File

@ -329,6 +329,8 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
metrics.addCustomData(new Metrics.Plotter("Total NPCs") {
@Override
public int getValue() {
if (npcRegistry == null)
return 0;
return Iterables.size(npcRegistry);
}
});