src/main/java/com/justserver/apocalypse/overworld/OverworldHandler.java
//simulate grappling hook pulls the player towards the location
simulate grappling hook pulls the player towards the location
simulate grappling hook pulls the player towards the location
public void pull(Location targetLoc, Player player){
        Location playerLoc = player.getLocation();
        @NotNull Vector direction = targetLoc.toVector().subtract(playerLoc.toVector());
        direction.setY(0);
        direction.normalize();
        direction.multiply(0.1);
        player.setVelocity(direction);
    }
public void pull ( Location targetLoc , Player player ) { Location playerLoc = player . getLocation ( ) ; @ NotNull Vector direction = targetLoc . toVector ( ) . subtract ( playerLoc . toVector ( ) ) ; direction . setY ( 0 ) ; direction . normalize ( ) ; direction . multiply ( 0.1 ) ; player . setVelocity ( direction ) ; }
simulate grappling hook pulls the player towards the location
simulate grappling hook pulls the player towards the location