* Fixed bug flying disable/enable not working good. Fixes #7.
This commit is contained in:
parent
3a88b10991
commit
012fac4c9a
@ -90,6 +90,7 @@ public class ArenaHandler {
|
|||||||
ConfigC.error_joinInventoryNotEmpty);
|
ConfigC.error_joinInventoryNotEmpty);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LocationSerializable zero = new LocationSerializable(
|
LocationSerializable zero = new LocationSerializable(
|
||||||
Bukkit.getWorld(player.getWorld().getName()
|
Bukkit.getWorld(player.getWorld().getName()
|
||||||
.toString()), 0, 0, 0, 0, 0);
|
.toString()), 0, 0, 0, 0, 0);
|
||||||
@ -141,8 +142,10 @@ public class ArenaHandler {
|
|||||||
new ItemStack(Material.AIR));
|
new ItemStack(Material.AIR));
|
||||||
player.getInventory().setBoots(
|
player.getInventory().setBoots(
|
||||||
new ItemStack(Material.AIR));
|
new ItemStack(Material.AIR));
|
||||||
player.setFlying(false);
|
player.setAllowFlight(pad.pFlying);
|
||||||
player.setAllowFlight(false);
|
if (player.getAllowFlight()) {
|
||||||
|
player.setFlying(true);
|
||||||
|
}
|
||||||
|
|
||||||
if ((Boolean) W.config
|
if ((Boolean) W.config
|
||||||
.get(ConfigC.shop_blockChooserEnabled) == true) {
|
.get(ConfigC.shop_blockChooserEnabled) == true) {
|
||||||
@ -301,9 +304,6 @@ public class ArenaHandler {
|
|||||||
player.teleport(pad.pLocation);
|
player.teleport(pad.pLocation);
|
||||||
player.setGameMode(pad.pGameMode);
|
player.setGameMode(pad.pGameMode);
|
||||||
player.setAllowFlight(pad.pFlying);
|
player.setAllowFlight(pad.pFlying);
|
||||||
if (player.getAllowFlight()) {
|
|
||||||
player.setFlying(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
W.pData.remove(player);
|
W.pData.remove(player);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user