use of tc.oc.pgm.filters.DenyFilter in project PGM by PGMDev.
the class RegionFilterApplicationParser method parseLane.
public void parseLane(Element el) throws InvalidXMLException {
final Filter filter = new DenyFilter(new TeamFilter(Teams.getTeamRef(new Node(XMLUtils.getRequiredAttribute(el, "team")), factory)));
final Region region = parseRegion(el);
final Component message = translatable("match.laneExit");
prepend(el, new RegionFilterApplication(RFAScope.PLAYER_ENTER, region, filter, message, false));
prepend(el, new RegionFilterApplication(RFAScope.BLOCK_PLACE, new NegativeRegion(region), filter, message, false));
}
Aggregations