package in.twizmwaz.cardinal.filter.type;

import in.twizmwaz.cardinal.filter.Filter;
import in.twizmwaz.cardinal.filter.FilterState;
import org.bukkit.Bukkit;

import java.util.logging.Level;

import static in.twizmwaz.cardinal.filter.FilterState.*;

public class ObjectiveFilter extends Filter {

    @Override
    public FilterState getState(final Object o) {
        Bukkit.getLogger().log(Level.INFO, "Objective Filters are not yet supported in CardinalPGM.");
        return ABSTAIN;
    }

}

@@ -127,16 +127,66 @@
 rState;%0A
+import in.twizmwaz.cardinal.module.GameObjective;%0A
 import o
@@ -350,169 +350,263 @@
     
-@Override%0A    public FilterState getState(final Object o) %7B%0A        Bukkit.getLogger().log(Level.INFO, %22Objective Filters are not yet supported in CardinalPGM.%22)
+private final GameObjective objective;%0A%0A    public ObjectiveFilter(final GameObjective objective) %7B%0A        this.objective = objective;%0A    %7D%0A%0A    @Override%0A    public FilterState getState(final Object o) %7B%0A        if (objective.isComplete()) return ALLOW
 ;%0A  
@@ -615,22 +615,24 @@
     
+else 
 return 
-ABSTAIN
+DENY
 ;%0A  

Add support for Objective filters