Package com.plotsquared.core.util
Class PlotFlagUtil
java.lang.Object
com.plotsquared.core.util.PlotFlagUtil
Util class for generic methods relating to plot flags.
- Since:
- 6.10.4
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
isAreaRoadFlagsAndFlagEquals
(PlotArea area, Class<? extends PlotFlag<T, ?>> flagClass, T value) Check if the value of aPlotFlag
matches the given value.
-
Method Details
-
isAreaRoadFlagsAndFlagEquals
public static <T> boolean isAreaRoadFlagsAndFlagEquals(PlotArea area, Class<? extends PlotFlag<T, ?>> flagClass, T value) Check if the value of aPlotFlag
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 ofvalue
- boolean value to check flag value against- Returns:
- true if road flag value matches with road flags enabled
- Since:
- 6.10.4
-