Class Ban

java.lang.Object
  extended by Ban

public class Ban
extends java.lang.Object

Ban.java - The ban class! Ban! Ban! Ban!


Constructor Summary
Constructor and Description
Ban()
           
 
Method Summary
Modifier and Type Method and Description
 int getId()
          Returns the SQL id for this ban (only used with SQL, not flat files)
 java.lang.String getIp()
          Returns the specified IP address for this ban.
 java.lang.String getName()
          Returns the player's name for this ban
 java.lang.String getReason()
          Returns the ban reason.
 int getTimestamp()
          Returns a UNIX timestamp for when this ban expires
 void setId(int id)
          Sets the SQL id for this ban (only used with SQL, not flat files)
 void setIp(java.lang.String ip)
          Sets the IP address of this ban
 void setName(java.lang.String name)
          Sets the player's name for this ban
 void setReason(java.lang.String reason)
          Sets the ban reason
 void setTimestamp(int timestamp)
          Sets the UNIX timestamp for this ban to expire at.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ban

public Ban()
Method Detail

getIp

public java.lang.String getIp()
Returns the specified IP address for this ban. Will be empty if no IP ban is associated

Returns:
the IP address

setIp

public void setIp(java.lang.String ip)
Sets the IP address of this ban

Parameters:
ip - ip to set

getName

public java.lang.String getName()
Returns the player's name for this ban

Returns:
player's name

setName

public void setName(java.lang.String name)
Sets the player's name for this ban

Parameters:
name - player's name

getReason

public java.lang.String getReason()
Returns the ban reason. Will be "N/A" if none specified, or is an old ban

Returns:
ban reason

setReason

public void setReason(java.lang.String reason)
Sets the ban reason

Parameters:
reason - ban reason to set

getTimestamp

public int getTimestamp()
Returns a UNIX timestamp for when this ban expires

Returns:
unix timestamp

setTimestamp

public void setTimestamp(int timestamp)
Sets the UNIX timestamp for this ban to expire at.

Parameters:
timestamp -

getId

public int getId()
Returns the SQL id for this ban (only used with SQL, not flat files)

Returns:

setId

public void setId(int id)
Sets the SQL id for this ban (only used with SQL, not flat files)

Parameters:
id -