mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-27 17:52:03 +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") {
|
metrics.addCustomData(new Metrics.Plotter("Total NPCs") {
|
||||||
@Override
|
@Override
|
||||||
public int getValue() {
|
public int getValue() {
|
||||||
|
if (npcRegistry == null)
|
||||||
|
return 0;
|
||||||
return Iterables.size(npcRegistry);
|
return Iterables.size(npcRegistry);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user