org.bukkit.event.player
Class PlayerQuitEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.player.PlayerEvent
          extended by org.bukkit.event.player.PlayerQuitEvent

public class PlayerQuitEvent
extends PlayerEvent

Called when a player leaves a server


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
 
Constructor Summary
PlayerQuitEvent(Player who, String quitMessage)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 String getQuitMessage()
          Gets the quit message to send to all online players
 void setQuitMessage(String quitMessage)
          Sets the quit message to send to all online players
 
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerQuitEvent

public PlayerQuitEvent(Player who,
                       String quitMessage)
Method Detail

getQuitMessage

public String getQuitMessage()
Gets the quit message to send to all online players

Returns:
string quit message

setQuitMessage

public void setQuitMessage(String quitMessage)
Sets the quit message to send to all online players

Parameters:
quitMessage - quit message

getHandlers

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.