Solved Get who launched arrow?

Discussion in 'Plugin Development' started by Bobfan, Nov 28, 2012.

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

    Bobfan

    Tittle saws it, how would I get who launched an arrow. My problem is that if the damager is not a player,
    Code:
    Player pA = (Player) event.getDamager();
    Than it will come out error. So I want to put an if than in there that if the damager is a player, than have that, but if it's an arrow, than pA will be the person who launched the arrow. (Simply, how would I get the launcher of an arrow?)
     
  2. Offline

    coldandtired

    arrow.getShooter();
     
    Aldimensch likes this.
  3. Offline

    Bobfan

    wow, ty.
     
    Aldimensch likes this.
Thread Status:
Not open for further replies.

Share This Page