I have a simpeler one thats used in the guns in my plugin. That knockbacks in the players direction. Code: player.setVelocity(player.getLocation().getDirection().multiply(-1)); This will cast the player backwards 1 block. in the direction he stands.