|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBan
public class Ban extends java.lang.Object
Ban.java - The ban class! Ban! Ban! Ban!
Constructor and Description |
---|
Ban()
|
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 |
---|
public Ban()
Method Detail |
---|
public java.lang.String getIp()
public void setIp(java.lang.String ip)
ip
- ip to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- player's namepublic java.lang.String getReason()
public void setReason(java.lang.String reason)
reason
- ban reason to setpublic int getTimestamp()
public void setTimestamp(int timestamp)
timestamp
- public int getId()
public void setId(int id)
id
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |