I am currently working on a plugin, and I am trying to see if there is a way to tell if a battle has been started by catching a pokemon using one of the rods. At the moment, I am checking if the pokemon is a water type and if the item in the players hand is an instance of the ItemFishingRod (from pixelmon) is there a better way to do this so that players cant run around holding the rod and catching pokemon in the water normally?
I am currently working on a plugin, and I am trying to see if there is a way to tell if a battle has been started by catching a pokemon using one of the rods. At the moment, I am checking if the pokemon is a water type and if the item in the players hand is an instance of the ItemFishingRod (from pixelmon) is there a better way to do this so that players cant run around holding the rod and catching pokemon in the water normally?