diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index c7baa40bc..5d90abca9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -9,13 +9,9 @@
-
-
-
-
-
-
-
+
+
+
@@ -39,46 +35,41 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -87,12 +78,9 @@
-
+
-
-
-
-
+
@@ -100,12 +88,9 @@
-
+
-
-
-
-
+
@@ -113,12 +98,9 @@
-
+
-
-
-
-
+
@@ -126,12 +108,9 @@
-
+
-
-
-
-
+
@@ -139,7 +118,7 @@
-
+
@@ -149,7 +128,7 @@
-
+
@@ -208,11 +187,9 @@
-
-
@@ -220,14 +197,16 @@
+
+
-
-
+
+
@@ -337,6 +316,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -367,6 +376,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -448,137 +487,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/C.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/Plot.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/PlotSelection.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/SchematicHandler.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Auto.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Claim.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Clear.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Command.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Copy.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Delete.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Kick.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/MainCommand.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Paste.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Unlink.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/database/PlotMeConverter.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java
- $PROJECT_DIR$/PlotSquared/src/plugin.yml
-
-
-
-
-
-
-
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/BlockWrapper.java
- $PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/commands/Swap.java
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -745,7 +653,8 @@
-
+
+
1411382351159
@@ -979,11 +888,15 @@
1413998882732
1413998882732
-
+
+ 1414069969139
+ 1414069969139
+
+
-
+
@@ -1006,7 +919,7 @@
-
+
@@ -1021,29 +934,29 @@
-
-
+
+
-
+
-
+
@@ -1060,8 +973,8 @@
-
+
@@ -1081,7 +994,6 @@
-
@@ -1106,11 +1018,12 @@
-
+
+
-
+
@@ -1276,7 +1189,6 @@
-
@@ -1326,7 +1238,6 @@
-
@@ -1334,7 +1245,6 @@
-
@@ -1342,7 +1252,6 @@
-
@@ -1350,7 +1259,6 @@
-
@@ -1358,15 +1266,6 @@
-
-
-
-
-
-
-
-
-
@@ -1377,19 +1276,10 @@
-
-
-
-
-
-
-
-
-
@@ -1397,15 +1287,6 @@
-
-
-
-
-
-
-
-
-
@@ -1413,7 +1294,6 @@
-
@@ -1421,10 +1301,6 @@
-
-
-
-
@@ -1432,7 +1308,6 @@
-
@@ -1440,9 +1315,7 @@
-
-
-
+
@@ -1450,10 +1323,7 @@
-
-
-
-
+
@@ -1461,10 +1331,7 @@
-
-
-
-
+
@@ -1472,10 +1339,7 @@
-
-
-
-
+
@@ -1483,10 +1347,7 @@
-
-
-
-
+
@@ -1508,8 +1369,32 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java
index 6b788fca1..5204dd414 100644
--- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java
+++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java
@@ -360,10 +360,24 @@ public class Set extends SubCommand {
PlotHelper.adjustWallFilling(plr, plot, new PlotBlock((short) material.getId(), data));
return true;
}
- StringBuilder builder = new StringBuilder();
- builder.append(C.SUBCOMMAND_SET_OPTIONS_HEADER.s());
- builder.append(getArgumentList(values));
- PlayerFunctions.sendMessage(plr, builder.toString());
+ {
+ AbstractFlag af = new AbstractFlag("");
+ try {
+ af = new AbstractFlag(args[0].toLowerCase());
+ }
+ catch (Exception e) {
+ }
+ if (FlagManager.getFlags().contains(af) || ((PlotMain.worldGuardListener != null) && PlotMain.worldGuardListener.str_flags.contains(args[1].toLowerCase()))) {
+ StringBuilder a = new StringBuilder();
+ if(args.length > 1) {
+ for(int x = 1; x < args.length; x++)
+ a.append(" " + args[x]);
+ }
+ plr.performCommand("plot set flag " + args[0] + args);
+ return true;
+ }
+ }
+ PlayerFunctions.sendMessage(plr, C.SUBCOMMAND_SET_OPTIONS_HEADER.s() + getArgumentList(values));
return false;
}
diff --git a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlotListener.java b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlotListener.java
index 65653e041..d6a45f709 100644
--- a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlotListener.java
+++ b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlotListener.java
@@ -157,6 +157,7 @@ public class PlotListener {
}
public static void plotExit(Player player, Plot plot) {
+ player.setAllowFlight(false);
{
PlayerLeavePlotEvent callEvent = new PlayerLeavePlotEvent(player, plot);
Bukkit.getPluginManager().callEvent(callEvent);