mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-30 21:17:45 +01:00
Check
This commit is contained in:
parent
8a1765873b
commit
c8c5ef1eb0
@ -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