diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java index eea883097..07ae581ca 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java @@ -57,7 +57,7 @@ import java.util.UUID; * */ -@SuppressWarnings({ "deprecation" }) +@SuppressWarnings("deprecation") public class PlotPlusListener extends PlotListener implements Listener { private final static HashMap feedRunnable = new HashMap<>(); private final static HashMap healRunnable = new HashMap<>(); @@ -122,6 +122,9 @@ public class PlotPlusListener extends PlotListener implements Listener { if (!FlagManager.isBooleanFlag(plot, "ice-melt", false)) { event.setCancelled(true); } + if (FlagManager.isPlotFlagFalse(plot, "snow-melt")) { + event.setCancelled(true); + } } @EventHandler(priority = EventPriority.HIGH) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/PS.java b/Core/src/main/java/com/intellectualcrafters/plot/PS.java index 2fc597262..6fd7f508a 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/PS.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/PS.java @@ -1951,6 +1951,7 @@ public class PS { FlagManager.addFlag(new AbstractFlag("use", new FlagValue.PlotBlockListValue())); FlagManager.addFlag(new AbstractFlag("blocked-cmds", new FlagValue.StringListValue())); FlagManager.addFlag(new AbstractFlag("ice-melt", new FlagValue.BooleanValue())); + FlagManager.addFlag(new AbstractFlag("snow-melt", new FlagValue.BooleanValue())); FlagManager.addFlag(new AbstractFlag("keep") { @Override public Object parseValueRaw(final String value) {