fixed fly

This commit is contained in:
boy0001 2014-10-27 07:56:44 +11:00
parent e3e18b259d
commit 5de8f6bf9b

View File

@ -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());
}