How to cancel default death message.

Discussion in 'Plugin Development' started by rawiuwt, Aug 23, 2013.

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

    rawiuwt

    Like Thread head. Thank for help.
     
  2. Offline

    Loogeh

    rawiuwt I'm not sure what you mean by what you said in the post but i'll just go off the title
    You would use PlayerDeathEvent and use event.setDeathMessage(death_message_here); If you want to completely get rid of it you would use event.setDeathMessage(null);
     
  3. Offline

    Wantsome909

    rawiuwt

    @EventHandler
    public void onPlayerDeath(PlayerDeathEvent e{
    e.setDeathMessage("");//set all death message.
    }
     
  4. Offline

    rawiuwt

    Loogeh I want to don't display death message.
     
  5. Offline

    Loogeh

    rawiuwt Look at the second part of what I said or what Wantsome909 said. That's how you disable it.
     
Thread Status:
Not open for further replies.

Share This Page