Solved Get Projectile Name by event.

Discussion in 'Spigot Plugin Development' started by nostynDev, Jun 10, 2017.

Thread Status:
Not open for further replies.
  1. How can I get the name (example: renamed with an anvil) of an egg (or snowball) launched? With "ProjectileLaunchEvent"? How?
     
  2. You can only get the entity name when its beeing launched, not the launched item name.
    Use the PlayerInteractEvent ( get the item in hand itemmeta -> displayname ) -> first check if its your correct item that is launch able.
     
  3. You can cancel the launch event, get item meta > display name. And then use #launchProjectile() to shoot it again
     
Thread Status:
Not open for further replies.