onPlayerQuit event ignores message?

Discussion in 'Plugin Development' started by clash, Apr 25, 2011.

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

    clash

    I have a plugin that overrides onPlayerJoin where I call setJoinMessage(...). This works fine. The message that I set is correctly broadcast to all online players.

    The listener also overrides onPlayerQuit and calls setQuitMessage(...). However, this one seems to have no effect such that the default message "... has left the game." is always broadcast.

    I looked around in the Bukkit and CraftBukkit code a bit and found where getQuitMessage() is called, and the value is returned by a method (called disconnect() if I recall?). However, in all the places I found where that method was called, the default message was broadcast beforehand, and the return value (via getQuitMessage()) was ignored.

    Anyone else see this behavior? Any ideas? Candidate for Leaky?
     
  2. Offline

    FrozenBrain

  3. Offline

    clash

    Awesome, thanks for the response. I searched for "onPlayerQuit", but it returns gobs of posts about the "nag" exception, so I didn't find your post. I'll have to refine my search better next time. ;)
     
Thread Status:
Not open for further replies.

Share This Page