This commit is contained in:
fullwall 2012-11-19 13:08:11 +08:00
parent 8a1765873b
commit c8c5ef1eb0

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);
}
});