Re-implemented triple jumps

This commit is contained in:
Sam 2017-04-28 16:26:02 +01:00
parent d3cb99f431
commit 59699f930e

View File

@ -127,7 +127,7 @@ public class PerkDoubleJump extends Perk
}
}
Recharge.Instance.useForce(player, "Double Jump", 500);
//Recharge.Instance.useForce(player, "Double Jump", 500);
}
@EventHandler
@ -147,8 +147,8 @@ public class PerkDoubleJump extends Perk
if (_recharge > 0 && !Recharge.Instance.usable(player, GetName()))
continue;
if (!Recharge.Instance.usable(player, "Double Jump"))
continue;
// if (!Recharge.Instance.usable(player, "Double Jump"))
// continue;
if (player.isOnGround() || (UtilBlock.solid(player.getLocation().getBlock().getRelative(BlockFace.DOWN)) && UtilBlock.solid(player.getLocation().getBlock())))
player.setAllowFlight(true);