mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-15 05:17:56 +00:00
Added IsPlotFlagFalse to FlagManager
This commit is contained in:
parent
5245177d9d
commit
be8db522fd
1 changed files with 11 additions and 0 deletions
|
@ -116,6 +116,17 @@ public class FlagManager {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isPlotFlagFalse(final Plot plot, final String strFlag) {
|
||||||
|
final Flag flag = getPlotFlag(plot, strFlag);
|
||||||
|
if (flag == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (flag.getValue() instanceof Boolean) {
|
||||||
|
return !(boolean) flag.getValue();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the value of a flag for a plot (ignores flag defaults)
|
* Get the value of a flag for a plot (ignores flag defaults)
|
||||||
* @param plot
|
* @param plot
|
||||||
|
|
Loading…
Reference in a new issue