PlayerRespawnEvent & PlayerDeathEvent

Discussion in 'Plugin Development' started by CrazymanJR, Sep 16, 2014.

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

    CrazymanJR

    Hello there,​
    I'm having some issues with some code. It's to do with the playerrespawnevent and playerdeathevent. There are no errors in the console and it should be working...​
     
  2. Offline

    tastybento

    I assume you have registered the event class in your plugin?
     
  3. Offline

    CrazymanJR

    tastybento
    Yes i have

    EDIT: if i didnt then the death msg wouldn't show but it does
     
  4. Offline

    tastybento

    And so when you say you are having issues, what is not happening or happening, and what should be happening?

    On a side note - I don't use player name any more to identify players because that can change. Recommend to use UUID. player.getName() --> player.getUniqueID()

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  5. Offline

    CrazymanJR

    tastybento
    The players don't respawn to what i set it too nor do they get there items. Also when the person on the president team dies, the game should end but it doesn't work.

    I know this might be double posting, but i really need help!! It would be great if somebody could give me some

    Fixed! I created a new method in my teams class and it fixed everything :)

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

Share This Page