Splash potion throw event

Discussion in 'Spigot Plugin Development' started by SIndybad, Jun 21, 2015.

  1. What is the event for when a player throws a splash potion, not when it hits something?
    Is it part of PlayerInteractEvent?
     
  2. The PlayerInteractEvent is called when you click one of the mouse buttons, and when you interact with a pressure plate. So you check if the action is right click and then you check if the item isn't null and is a splash potion. So yeah you would use PlayerInteractEvent. You might also be able to use ProjectileLaunchEvent. But I don't know if that will work