package in.twizmwaz.cardinal.module.modules.mob;

import in.twizmwaz.cardinal.match.Match;
import in.twizmwaz.cardinal.module.ModuleBuilder;
import in.twizmwaz.cardinal.module.ModuleCollection;
import in.twizmwaz.cardinal.module.modules.filter.FilterModuleBuilder;

public class MobModuleBuilder implements ModuleBuilder {
    @Override
    public ModuleCollection load(Match match) {
        ModuleCollection<MobModule> results = new ModuleCollection<MobModule>();
        if (match.getDocument().getRootElement().getChild("mob") != null) {
            results.add(new MobModule(FilterModuleBuilder.getFilter(match.getDocument().getRootElement().getChild("mob").getChild("filter"))));
        } else results.add(new MobModule(FilterModuleBuilder.getFilter("deny-all")));
        return results;
    }
}

@@ -521,16 +521,17 @@
 ild(%22mob
+s
 %22) != nu
@@ -654,16 +654,17 @@
 ild(%22mob
+s
 %22).getCh

Change 'mob' to 'mobs' to comply with PGM docs