Changes...

This commit is contained in:
main() 2012-07-12 17:34:25 +02:00
parent 8a4ba2a66c
commit dd0b2137d6

View File

@ -374,12 +374,19 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
envGraph.addPlotter(new EnvironmentPlotter(this, env)); envGraph.addPlotter(new EnvironmentPlotter(this, env));
m.addCustomData(new Metrics.Plotter("world_count") { m.addCustomData(new Metrics.Plotter("Loaded worlds") {
@Override @Override
public int getValue() { public int getValue() {
return getMVWorldManager().getMVWorlds().size(); return getMVWorldManager().getMVWorlds().size();
} }
}); });
m.addCustomData(new Metrics.Plotter("Total number of worlds") {
@Override
public int getValue() {
return getMVWorldManager().getMVWorlds().size()
+ getMVWorldManager().getUnloadedWorlds().size();
}
});
Set<String> gens = new HashSet<String>(); Set<String> gens = new HashSet<String>();
for (MultiverseWorld w : this.getMVWorldManager().getMVWorlds()) for (MultiverseWorld w : this.getMVWorldManager().getMVWorlds())