Hi, For a minigame I might start working on, I want to make it so if you press space twice, you get flipped over and launched into the air, like a backflip. Is this possible? I've seen plugins like Chairs do something similar by changing the X and Y coordinates of the player, but how would I do a backflip? Thanks!
Like this? Code:java @EventHandler public void onFlyingtoggle(PlayerToggleFlightEvent event){ Player me = event.getPlayer(); me.getVelocity().setY(4); event.setCancelled(true); }