Fly-Command #18
@ -69,8 +69,8 @@ public class DoubleJumpListener implements Listener {
|
|||||||
public void handlePlayerMove(PlayerMoveEvent event) {
|
public void handlePlayerMove(PlayerMoveEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
if(player.getLocation().add(0, -1, 0).getBlock().getType() == Material.AIR)
|
if(player.getLocation().add(0, -1, 0).getBlock().getType() == Material.AIR) return;
|
||||||
return;
|
if (LobbyPlayer.getLobbyPlayer(player).isFly()) return;
|
||||||
|
|
||||||
player.setAllowFlight(true);
|
player.setAllowFlight(true);
|
||||||
if (player.getGameMode() == GameMode.ADVENTURE || player.getGameMode() == GameMode.SURVIVAL) {
|
if (player.getGameMode() == GameMode.ADVENTURE || player.getGameMode() == GameMode.SURVIVAL) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren