Solved Drop item on death

Discussion in 'Plugin Development' started by DoggyCode™, Jul 23, 2015.

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

    DoggyCode™

    Let's say for example when I kill someone (a player), is it a way that I can make that player drop a specfic item? I tried to listen to the PlayerDeathEvent and then add a item to the player's inventory.. but that didn't work. Any other way?
     
  2. Offline

    schwabfl

    e.getDrops().add(myItemStack)
     
  3. Offline

    DoggyCode™

Thread Status:
Not open for further replies.

Share This Page