public class PlayerCache
extends java.lang.Object
| Constructor and Description |
|---|
PlayerCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddress(java.lang.String uuid,
java.lang.String address)
Adds an address to the player cache
|
void |
addLatestName(java.lang.String uuid,
java.lang.String name)
Adds the latest name of a player
|
void |
addStaff(java.lang.String uuid)
Used to add a staff member who won't be kicked in staff mode
|
java.lang.String |
getAddress(java.lang.String uuid)
Used to get a player's IP address if one exists
|
java.lang.String |
getLatestName(java.lang.String uuid)
Used to get the latest name of a player
|
java.util.List<java.lang.String> |
getPlayersWithIP(java.lang.String address)
Used to fetch all players with a particular IP address
|
java.util.List<java.lang.String> |
getStaff()
Used to fetch all of the current staff on a server
|
boolean |
isStaff(java.lang.String uuid)
Used to determine if a player is staff of not
|
boolean |
removeStaff(java.lang.String uuid)
Used to remove a staff member who won't be kicked in staff mode
|
public void addAddress(java.lang.String uuid,
java.lang.String address)
uuid - The uuid to add the address foraddress - The address of the specified uuidpublic java.lang.String getAddress(java.lang.String uuid)
uuid - The UUID to check forpublic java.util.List<java.lang.String> getPlayersWithIP(java.lang.String address)
address - The address to check forpublic void addStaff(java.lang.String uuid)
uuid - The uuid to addpublic boolean removeStaff(java.lang.String uuid)
uuid - The uuid to removepublic boolean isStaff(java.lang.String uuid)
uuid - The uuid to checkpublic java.util.List<java.lang.String> getStaff()
public void addLatestName(java.lang.String uuid,
java.lang.String name)
uuid - The uuid to tie the name toname - The username to tie to the uuidpublic java.lang.String getLatestName(java.lang.String uuid)
uuid - The uuid to get the latest name for (because if you already have the username,
then why would you need this fuction?!)