Class PlotFlagUtil

java.lang.Object
com.plotsquared.core.util.PlotFlagUtil

public final class PlotFlagUtil extends Object
Util class for generic methods relating to plot flags.
Since:
6.10.4
  • Method Details

    • isAreaRoadFlagsAndFlagEquals

      public static <T> boolean isAreaRoadFlagsAndFlagEquals(PlotArea area, Class<? extends PlotFlag<T,?>> flagClass, T value)
      Check if the value of a PlotFlag matches the given value. If road flags are disabled for the given plot area, returns false.
      Type Parameters:
      T - The flag value type
      Parameters:
      flagClass - boolean flag to get value of
      value - boolean value to check flag value against
      Returns:
      true if road flag value matches with road flags enabled
      Since:
      6.10.4