Solved Getting The Player That Died

Discussion in 'Plugin Development' started by Reptar_, Mar 17, 2013.

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

    Reptar_

    What I want this plugin to do is wipe the player's inventory when they die, so they don't drop anything. I just can't seem to get the player that died.

    Here's my code: http://pastebin.com/VYbhPxBJ

    The problem is, I get an error at event.getPlayer(); It says I need to add a cast to the event.

    Never mind. I solved it! xP

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
Thread Status:
Not open for further replies.

Share This Page