|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.armar.plugins.autorank.api.API
public class API
Autorank's API class:
You, as a developer, can you use this class to get data from players or data about groups. The API is never finished and if you want to see something added, tell us!
| Field Summary | |
|---|---|
private Autorank |
plugin
|
| Constructor Summary | |
|---|---|
API(Autorank instance)
|
|
| Method Summary | |
|---|---|
java.util.List<Requirement> |
getAllRequirements(org.bukkit.entity.Player player)
Gets all requirements for a player at the exact moment. |
java.util.List<Requirement> |
getFailedRequirements(org.bukkit.entity.Player player)
Gets all requirements that are not yet completed. |
int |
getGlobalPlayTime(java.lang.String playerName)
Gets the global play time (playtime across all servers with the same MySQL database linked) of a player. |
int |
getLocalPlayTime(java.lang.String playerName)
Gets the local play time (playtime on this server) of a player. |
java.lang.String |
getMySQLDatabase()
Gets the database name Autorank stores its global times in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Autorank plugin
| Constructor Detail |
|---|
public API(Autorank instance)
| Method Detail |
|---|
public int getLocalPlayTime(java.lang.String playerName)
playerName - player to check for.
public java.lang.String getMySQLDatabase()
public int getGlobalPlayTime(java.lang.String playerName)
playerName - player to check for.
public java.util.List<Requirement> getAllRequirements(org.bukkit.entity.Player player)
player - Player to get the requirements from.
public java.util.List<Requirement> getFailedRequirements(org.bukkit.entity.Player player)
player - Player to get the failed requirements for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||