From 5de8f6bf9bb072ca5fc03db42154cc58f6d7042c Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 27 Oct 2014 07:56:44 +1100 Subject: [PATCH] fixed fly --- .../com/intellectualcrafters/plot/listeners/PlotListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlotListener.java b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlotListener.java index 71de3e21c..4733505da 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlotListener.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlotListener.java @@ -175,11 +175,13 @@ public class PlotListener { } public static void plotExit(Player player, Plot plot) { - player.setAllowFlight(false); { PlayerLeavePlotEvent callEvent = new PlayerLeavePlotEvent(player, plot); Bukkit.getPluginManager().callEvent(callEvent); } + if(plot.settings.getFlag("fly") != null) { + player.setAllowFlight(Bukkit.getAllowFlight()); + } if(plot.settings.getFlag("gamemode") != null) { player.setGameMode(Bukkit.getDefaultGameMode()); }