Get the display name of arrow shooted by a player

Discussion in 'Plugin Development' started by ElCreeperHD, Feb 9, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    ElCreeperHD

    Hello, I am trying to get the display name of an arrow shot by a player. I am trying to use EntityShootBowEvent.
    I have no idea of how I should do it. I know I can do that with metadata, but I don t know how I can get the arrow.
     
  2. Offline

    adam753

    Just do event.getProjectile() to get the arrow entity. I'm not sure what you want to do with it after that, but storing it in a list or hashmap would work.
     
  3. Offline

    ElCreeperHD

    How I can use metadata for an arrow? I think I should listen to other event, but no idea
    EDIT: @adam753
     
    Last edited: Feb 10, 2016
Thread Status:
Not open for further replies.

Share This Page