Help with Double Jump Plugin

Discussion in 'Plugin Development' started by MinecraftManiac365, Mar 29, 2014.

Thread Status:
Not open for further replies.
  1. Hello, I am developing a bukkit plugin that allows a player to double jump. The way it works is when a player starts flying it sets their y velocity to 5 then turns off flying for them. It has one though, it doesn't work :) Here is my code: http://pastebin.com/gp3EX6Ye
     
  2. Offline

    e1kfws7

    Try this:
     
  3. Offline

    tommyhoogstra

    try
    Code:java
    1. Player player = e.getPlayer();
    2. player.setVelocity(player.getLocation().getDirection().multiply(1.5).setY(1);
    3. player.setFlying(false);
     
Thread Status:
Not open for further replies.

Share This Page