Removing part of a message

Discussion in 'Plugin Development' started by Pr07o7yp3, May 31, 2013.

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

    Pr07o7yp3

    Ok, you know in one of the lastest updates of MC when a player kill another player, the message contains the name of the weapon. I mean
    Player 1 kill player 2:
    The message is this: "Player 2 was slain by Player 1 using NAME OF WEAPON".

    And some of my users renames their items with something like "my di*k" and the message looks like this: "Player 2 was slain by Player 1 using my di*k"
    So how can I remove this part "using ITEM NAME"?

    Ty. :)
     
  2. Offline

    Rocoty

    Listen for PlayerDeathEvent and set whatever message you prefer
     
Thread Status:
Not open for further replies.

Share This Page