PlayerDeathEvent getKiller() setScore?

Discussion in 'Spigot Plugin Development' started by Jartsu, Jun 9, 2016.

  1. Hey,

    So I have an PlayerDeathEvent. If killer, killed someone, then it should add + 300 points, but it doesn't because PlayerDeathEvent doesn't have .setScore int. How could I do that other way?

    This has to be done, but not possible because setScore doesn't exist at PlayerDeathEvent
    Code (Text):

    money.get(e.getEntity().getKiller()).setScore(money.get(e.getEntity().getKiller().setScore() + 300));
     
  2. Move #setScore out one parentheses
     
  3. What do you mean by that? Sorry, I'm newb :D
     
  4. so :
     
    • Agree Agree x 1