src/main/java/com/justserver/apocalypse/overworld/OverworldHandler.java
//make method that pulls the player horizontaly under the location
make method that pulls the player horizontaly under the location
make method that pulls the player horizontaly under the location
public void pullHorizontal(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 pullHorizontal ( 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 ) ; }
make method that pulls the player horizontaly under the location
make method that pulls the player horizontaly under the location