src/main/java/com/justserver/apocalypse/overworld/OverworldHandler.java
//listen player releases the fishing rod
listen player releases the fishing rod
listen player releases the fishing rod
@EventHandler
    public void onPlayerFish(PlayerFishEvent event){
        if(event.getState().equals(PlayerFishEvent.State.CAUGHT_FISH)){
            Player player = event.getPlayer();
            Location targetLoc = event.getHook().getLocation();
            pullHorizontal(targetLoc, player);
        }
    }
@ EventHandler public void onPlayerFish ( PlayerFishEvent event ) { if ( event . getState ( ) . equals ( PlayerFishEvent . State . CAUGHT_FISH ) ) { Player player = event . getPlayer ( ) ; Location targetLoc = event . getHook ( ) . getLocation ( ) ; pullHorizontal ( targetLoc , player ) ; } }
listen player releases the fishing rod
listen player releases the fishing rod