From 8c245b4f219a4b98704af2b53b8726028f6dc11b Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 25 Aug 2015 02:33:28 +1000 Subject: [PATCH] Optional bo3 tags --- .../java/com/intellectualcrafters/plot/util/BO3Handler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/intellectualcrafters/plot/util/BO3Handler.java b/src/main/java/com/intellectualcrafters/plot/util/BO3Handler.java index 1b1f208ae..a03e2d4fd 100644 --- a/src/main/java/com/intellectualcrafters/plot/util/BO3Handler.java +++ b/src/main/java/com/intellectualcrafters/plot/util/BO3Handler.java @@ -10,6 +10,7 @@ import java.util.Map.Entry; import com.intellectualcrafters.plot.PS; import com.intellectualcrafters.plot.config.Settings; +import com.intellectualcrafters.plot.flag.FlagManager; import com.intellectualcrafters.plot.generator.ClassicPlotWorld; import com.intellectualcrafters.plot.object.BO3; import com.intellectualcrafters.plot.object.ChunkLoc; @@ -128,7 +129,7 @@ public class BO3Handler { List lines = Files.readAllLines(base.toPath(), StandardCharsets.UTF_8); for (int i = 0; i < lines.size(); i++) { String line = lines.get(i).trim(); - String result = StringMan.replaceAll(line, "%owner%", MainUtil.getName(plot.owner), "%alias%", plot.toString(), "%blocks%", bo3.getBlocks(), "%branches%", bo3.getChildren()); + String result = StringMan.replaceAll(line, "%owner%", MainUtil.getName(plot.owner), "%alias%", plot.toString(), "%blocks%", bo3.getBlocks(), "%branches%", bo3.getChildren(), "%flags%", StringMan.join(FlagManager.getPlotFlags(plot).values(), ",")); if (!StringMan.isEqual(result, line)) { lines.set(i, result); }