Solved How to Disable Player Join & Leave Messages

Discussion in 'Plugin Development' started by The Gaming Grunts, Aug 2, 2013.

Thread Status:
Not open for further replies.
  1. Hey everyone! I was wondering how to disable player join & leave messages ("Player has joined the game" and "Player has left the game"). Can't seem to figure out how to do this :(
  2. You need help xP This is the simplest thing you could do. :p
    In the PlayerJoinEvent do event.setJoinMessage("") and in the PlayerQuitEvent do event.setQuitMessage("") and in the PlayerKickEvent do event.setLeaveMessage("").
  3. The Gaming Grunts
    You can override default join messages with PlayerJoinEvent then setJoinMessage() method. And for leaving, use PlayerQuitEvent, and setQuitMessage(?).

    If any other plugin does something with these methods, then you're going to have some conflict.
  4. Thanks :)

  5. Why did you put a question mark may I ask?

    No probelm. :p
  6. KingFaris11
    I was supposed to say "setQuitMessage() (?)", because I wasn't sure which one (setQuitMessage or setLeaveMessage) was the right one for PlayerQuitEvent. Apparently I put the question mark there too early. :D
Thread Status:
Not open for further replies.

Share This Page