mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 04:35:50 +01:00
Check
This commit is contained in:
parent
7675620594
commit
c981e93c50
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user