mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-01 21:24:43 +02:00
@ -157,8 +157,16 @@ public class FlagManager {
|
||||
public static Flag getPlotFlag(final Plot plot, final String flag) {
|
||||
Flag result = getPlotFlagRaw(plot, flag);
|
||||
return result == null ? null : (Flag) result.clone();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw flag<br>
|
||||
* - Faster
|
||||
* - You should not modify the flag
|
||||
* @param plot
|
||||
* @param flag
|
||||
* @return
|
||||
|
||||
*/
|
||||
public static Flag getPlotFlagRaw(final Plot plot, final String flag) {
|
||||
if (plot.owner == null) {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user