Class CommonAPI

java.lang.Object
com.djrapitops.plan.api.CommonAPI
All Implemented Interfaces:
PlanAPI

@Singleton @Deprecated(forRemoval=true, since="5.0") public class CommonAPI extends Object implements PlanAPI
Deprecated, for removal: This API element is subject to removal in a future version.
Plan API v4 has been deprecated, use the APIv5 instead (wiki).
PlanAPI extension for all implementations.
  • Constructor Details

    • CommonAPI

      @Inject public CommonAPI(DBSystem dbSystem, UUIDUtility uuidUtility, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • addPluginDataSource

      public void addPluginDataSource(PluginData pluginData)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      addPluginDataSource in interface PlanAPI
    • getPlayerInspectPageLink

      public String getPlayerInspectPageLink(UUID uuid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getPlayerInspectPageLink in interface PlanAPI
    • getPlayerInspectPageLink

      public String getPlayerInspectPageLink(String playerName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getPlayerInspectPageLink in interface PlanAPI
    • playerNameToUUID

      public UUID playerNameToUUID(String playerName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      playerNameToUUID in interface PlanAPI
    • getKnownPlayerNames

      public Map<UUID,String> getKnownPlayerNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getKnownPlayerNames in interface PlanAPI
    • fetchPlayerContainer

      public PlayerContainer fetchPlayerContainer(UUID uuid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: PlanAPI
      Fetch PlayerContainer from the database.

      Blocking operation.

      Specified by:
      fetchPlayerContainer in interface PlanAPI
      Parameters:
      uuid - UUID of the player.
      Returns:
      a PlayerContainer.
    • fetchServerContainer

      public ServerContainer fetchServerContainer(UUID serverUUID)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: PlanAPI
      Fetch a ServerContainer from the database.

      Blocking operation.

      Specified by:
      fetchServerContainer in interface PlanAPI
      Parameters:
      serverUUID - UUID of the server.
      Returns:
      a ServerContainer.
    • fetchServerUUIDs

      public Collection<UUID> fetchServerUUIDs()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: PlanAPI
      Fetch server UUIDs.
      Specified by:
      fetchServerUUIDs in interface PlanAPI
      Returns:
      All Plan server UUIDs.
    • getPlayerName

      public String getPlayerName(UUID playerUUID)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getPlayerName in interface PlanAPI