hello bukkit I was testing out flying stuff and noticed setFlySpeed() did not seem to change the players flight speed? Does this not work or am I using it wrong? p.setAllowFlight(true); p.setFlying(true); p.setFlightSpeed(1.0F);
@Nooobui From what I remember 1 is the default fly speed, try setting it to something higher or lower.
@Nooobui If I remember correctly, because of changes made in 1.8+ with the ability to "sprint" while flying they either removed the "flightspeed", or bukkit/spigot broke flightspeed. (Most likely in is the former)
@Xerox262 trying to set above 1 throws a error in console it's max @Zombie_Striker damn ok ty for letting me know why it doesn't work Anyone have a idea how to to make a player fly faster w/o setFlySpeed
((CraftPlayer)p).getHandle().abilities.flySpeed = 2F; Somthing like this using a players abilities c: Ill edit it once I get the 100% correct awnser. Edit: OHHH I got it right first try this works until you go at your servers max speed limit. Also be carful as this does not reset when the player disconnects. Meaning I now fly around at lightspeeds cause I'm too lazy to add 1 line of code to reset it/change it.
@Graffetus Using a lower case or capital F for float has nothing to do with the issue.. I'm pretty sure 1.8+ breaks the flight speed since they implemented sprinting while flying, aka pressing CTRL when flying you go super fast... but @Lightspeed's code works perfect