Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PlayerQuitEvent.java
1 package org.bukkit.event.player;
2 
3 import org.bukkit.entity.Player;
5 
6 /**
7  * Called when a player leaves a server
8  */
9 public class PlayerQuitEvent extends PlayerEvent {
10  private static final HandlerList handlers = new HandlerList();
11  private String quitMessage;
12 
13  public PlayerQuitEvent(final Player who, final String quitMessage) {
14  super(who);
15  this.quitMessage = quitMessage;
16  }
17 
18  /**
19  * Gets the quit message to send to all online players
20  *
21  * @return string quit message
22  */
23  public String getQuitMessage() {
24  return quitMessage;
25  }
26 
27  /**
28  * Sets the quit message to send to all online players
29  *
30  * @param quitMessage quit message
31  */
32  public void setQuitMessage(String quitMessage) {
33  this.quitMessage = quitMessage;
34  }
35 
36  @Override
37  public HandlerList getHandlers() {
38  return handlers;
39  }
40 
41  public static HandlerList getHandlerList() {
42  return handlers;
43  }
44 }