net.jetrix.filter
Class PingFilter

java.lang.Object
  extended by net.jetrix.filter.MessageFilter
      extended by net.jetrix.filter.PingFilter

public class PingFilter
extends MessageFilter

Display the ping of the player if a team message is processed and the player property command.ping is set to true. This filter also intercepts in game messages containing only "t" and send back a "PONG" message to the player.

Version:
$Revision: 574 $, $Date: 2005-01-11 01:48:26 +0100 (mar., 11 janv. 2005) $
Author:
Emmanuel Bourg

Field Summary
 
Fields inherited from class net.jetrix.filter.MessageFilter
config
 
Constructor Summary
PingFilter()
           
 
Method Summary
 String getAuthor()
          Returns the author of this filter.
 String getDescription()
          Returns a short description of this filter.
 String getName()
          Returns the name of this filter.
 String getVersion()
          Returns the version of this filter
 void process(Message m, List<Message> out)
          Process a message and outputs messages to the specified List.
 
Methods inherited from class net.jetrix.filter.MessageFilter
destroy, getChannel, getConfig, getProperty, init, isShared, setChannel, setConfig, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingFilter

public PingFilter()
Method Detail

process

public final void process(Message m,
                          List<Message> out)
Description copied from class: MessageFilter
Process a message and outputs messages to the specified List.

Specified by:
process in class MessageFilter

getName

public String getName()
Description copied from class: MessageFilter
Returns the name of this filter.

Overrides:
getName in class MessageFilter

getDescription

public String getDescription()
Description copied from class: MessageFilter
Returns a short description of this filter.

Overrides:
getDescription in class MessageFilter

getVersion

public String getVersion()
Description copied from class: MessageFilter
Returns the version of this filter

Overrides:
getVersion in class MessageFilter

getAuthor

public String getAuthor()
Description copied from class: MessageFilter
Returns the author of this filter.

Overrides:
getAuthor in class MessageFilter


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.