Archiviert
13
0

Fly-Command #18

Manuell gemergt
YoyoNow hat 7 Commits von Fly-Command nach master 2020-12-30 16:04:14 +01:00 zusammengeführt
Nur Änderungen aus Commit c9f1e3be29 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -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) {