Class CommonAPI

  • All Implemented Interfaces:
    PlanAPI

    @Singleton
    @Deprecated
    public class CommonAPI
    extends java.lang.Object
    implements PlanAPI
    Deprecated.
    Plan API v4 has been deprecated, use the APIv5 instead (https://github.com/plan-player-analytics/Plan/wiki/APIv5).
    PlanAPI extension for all implementations.
    • Constructor Detail

      • CommonAPI

        @Inject
        public CommonAPI​(DBSystem dbSystem,
                         UUIDUtility uuidUtility,
                         net.playeranalytics.plugin.server.PluginLogger logger,
                         ErrorLogger errorLogger)
        Deprecated.
    • Method Detail

      • getPlayerInspectPageLink

        public java.lang.String getPlayerInspectPageLink​(java.util.UUID uuid)
        Deprecated.
        Specified by:
        getPlayerInspectPageLink in interface PlanAPI
      • getPlayerInspectPageLink

        public java.lang.String getPlayerInspectPageLink​(java.lang.String playerName)
        Deprecated.
        Specified by:
        getPlayerInspectPageLink in interface PlanAPI
      • playerNameToUUID

        public java.util.UUID playerNameToUUID​(java.lang.String playerName)
        Deprecated.
        Specified by:
        playerNameToUUID in interface PlanAPI
      • getKnownPlayerNames

        public java.util.Map<java.util.UUID,​java.lang.String> getKnownPlayerNames()
        Deprecated.
        Specified by:
        getKnownPlayerNames in interface PlanAPI
      • fetchPlayerContainer

        public PlayerContainer fetchPlayerContainer​(java.util.UUID uuid)
        Deprecated.
        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​(java.util.UUID serverUUID)
        Deprecated.
        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 java.util.Collection<java.util.UUID> fetchServerUUIDs()
        Deprecated.
        Description copied from interface: PlanAPI
        Fetch server UUIDs.
        Specified by:
        fetchServerUUIDs in interface PlanAPI
        Returns:
        All Plan server UUIDs.
      • getPlayerName

        public java.lang.String getPlayerName​(java.util.UUID playerUUID)
        Deprecated.
        Specified by:
        getPlayerName in interface PlanAPI