Archiviert
13
0
Dieser Commit ist enthalten in:
Yaruma3341 2020-01-19 17:29:06 +01:00
Ursprung 160d4fdb50
Commit 7a6b079b9d

Datei anzeigen

@ -28,8 +28,10 @@ public class FlyCommand implements CommandExecutor {
return false;
}
boolean newFlightState = !player.isFlying();
LobbyPlayer.getLobbyPlayer(player.getUniqueId()).setFly(newFlightState);
LobbyPlayer lobbyPlayer = LobbyPlayer.getLobbyPlayer(player.getUniqueId());
boolean newFlightState = !lobbyPlayer.isFly();
lobbyPlayer.setFly(newFlightState);
player.setAllowFlight(newFlightState);
player.setFlying(newFlightState);
player.sendMessage("§7Du kannst jetzt " + (newFlightState ? "§afliegen§7." : "§cnicht §7mehr fliegen."));