Add support for WorldGuard on built-in server, fix getNodes() on new

ConfigurationNode class
This commit is contained in:
Mike Primm 2011-05-18 23:29:33 -05:00
parent a7ba34065b
commit 26f4f7d994
5 changed files with 95 additions and 5 deletions

View file

@ -33,7 +33,7 @@ class JsonTimerTask extends TimerTask {
this.server = this.plugin.getServer();
this.mapManager = this.plugin.getMapManager();
this.configuration = config;
for(ConfigurationNode type : configuration.getNodes("web/components"))
for(ConfigurationNode type : configuration.getNode("web").getNodes("components"))
if(type.getString("type").equalsIgnoreCase("regions")) {
this.regions = type;
break;