org.bukkit.event.server
Class ServerListPingEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.server.ServerEvent
          extended by org.bukkit.event.server.ServerListPingEvent

public class ServerListPingEvent
extends ServerEvent

Called when a server list ping is coming in.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Constructor Summary
ServerListPingEvent(InetAddress address, String motd, int numPlayers, int maxPlayers)
           
 
Method Summary
 InetAddress getAddress()
          Get the address the ping is coming from.
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 int getMaxPlayers()
          Get the maximum number of players sent.
 String getMotd()
          Get the message of the day message.
 int getNumPlayers()
          Get the number of players sent.
 void setMaxPlayers(int maxPlayers)
          Set the maximum number of players sent.
 void setMotd(String motd)
          Change the message of the day message.
 
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

ServerListPingEvent

public ServerListPingEvent(InetAddress address,
                           String motd,
                           int numPlayers,
                           int maxPlayers)
Method Detail

getAddress

public InetAddress getAddress()
Get the address the ping is coming from.

Returns:
the address

getMotd

public String getMotd()
Get the message of the day message.

Returns:
the message of the day

setMotd

public void setMotd(String motd)
Change the message of the day message.

Parameters:
motd - the message of the day

getNumPlayers

public int getNumPlayers()
Get the number of players sent.

Returns:
the number of players

getMaxPlayers

public int getMaxPlayers()
Get the maximum number of players sent.

Returns:
the maximum number of players

setMaxPlayers

public void setMaxPlayers(int maxPlayers)
Set the maximum number of players sent.

Parameters:
maxPlayers - the maximum number of player

getHandlers

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

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.