PlanAPI.PlanAPIHolder
Constructor and Description |
---|
CommonAPI(DBSystem dbSystem,
UUIDUtility uuidUtility,
HookHandler hookHandler,
com.djrapitops.plugin.logging.console.PluginLogger logger,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addPluginDataSource(PluginData pluginData) |
FetchOperations |
fetchFromPlanDB()
Fetch things from the database.
|
PlayerContainer |
fetchPlayerContainer(java.util.UUID uuid)
Fetch PlayerContainer from the database.
|
ServerContainer |
fetchServerContainer(java.util.UUID serverUUID)
Fetch a ServerContainer from the database.
|
java.util.Collection<java.util.UUID> |
fetchServerUUIDs()
Fetch server UUIDs.
|
java.util.Map<java.util.UUID,java.lang.String> |
getKnownPlayerNames() |
java.lang.String |
getPlayerInspectPageLink(java.lang.String playerName) |
java.lang.String |
getPlayerInspectPageLink(java.util.UUID uuid) |
java.lang.String |
getPlayerName(java.util.UUID playerUUID) |
java.util.UUID |
playerNameToUUID(java.lang.String playerName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance
@Inject public CommonAPI(DBSystem dbSystem, UUIDUtility uuidUtility, HookHandler hookHandler, com.djrapitops.plugin.logging.console.PluginLogger logger, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public void addPluginDataSource(PluginData pluginData)
addPluginDataSource
in interface PlanAPI
public java.lang.String getPlayerInspectPageLink(java.util.UUID uuid)
getPlayerInspectPageLink
in interface PlanAPI
public java.lang.String getPlayerInspectPageLink(java.lang.String playerName)
getPlayerInspectPageLink
in interface PlanAPI
public java.util.UUID playerNameToUUID(java.lang.String playerName)
playerNameToUUID
in interface PlanAPI
public java.util.Map<java.util.UUID,java.lang.String> getKnownPlayerNames()
getKnownPlayerNames
in interface PlanAPI
public PlayerContainer fetchPlayerContainer(java.util.UUID uuid)
PlanAPI
Blocking operation.
fetchPlayerContainer
in interface PlanAPI
uuid
- UUID of the player.PlayerContainer
.public ServerContainer fetchServerContainer(java.util.UUID serverUUID)
PlanAPI
Blocking operation.
fetchServerContainer
in interface PlanAPI
serverUUID
- UUID of the server.ServerContainer
.public java.util.Collection<java.util.UUID> fetchServerUUIDs()
PlanAPI
fetchServerUUIDs
in interface PlanAPI
public java.lang.String getPlayerName(java.util.UUID playerUUID)
getPlayerName
in interface PlanAPI
public FetchOperations fetchFromPlanDB()
PlanAPI
fetchFromPlanDB
in interface PlanAPI