Interface Server

    • Method Detail

      • getId

        int getId()
        Get the unique ID of this server.
        Returns:
        The server ID.
      • getShopId

        int getShopId()
        Get the ID of the owning shop.
        Returns:
        The owning shop ID.
      • getName

        @NotNull
        @NotNull String getName()
        Get the name of this server.
        Returns:
        The server name.
      • getAddress

        @NotNull
        @NotNull String getAddress()
        Get the IP address of this server.
        Returns:
        The server IP address.
      • getPort

        int getPort()
        Get the port of this server.
        Returns:
        The server port.
      • getVersion

        @NotNull
        @NotNull String getVersion()
        Get the actual server software version.
        A version will be available after the first server ping.
        Example: Paper 1.16.5
        Returns:
        The server software version.
      • isAddressHidden

        boolean isAddressHidden()
        Check is the IP address of this server is hidden for the shop web-page.
        Returns:
        A boolean value: the check result.
      • isPortHidden

        boolean isPortHidden()
        Check is the port of this server is hidden for the shop web-page.
        Returns:
        A boolean value: the check result.
      • isHidden

        boolean isHidden()
        Check is this server is hidden for the shop web-page.
        Returns:
        A boolean value: the check result.
      • isPaymentsDisabled

        boolean isPaymentsDisabled()
        Check is any payments are disabled for this server.
        Returns:
        A boolean value: the check result.
      • getProducts

        @NotNull
        @NotNull Optional<ProductsList> getProducts()
        Get the list of all configured products for this server.
        Returns:
        The configured products list.
      • getCreatedAt

        @NotNull
        @NotNull LocalDateTime getCreatedAt()
        Get the creation date of this server.
        Returns:
        The server creation date.
      • getUpdatedAt

        @NotNull
        @NotNull LocalDateTime getUpdatedAt()
        Get the date of the last update of this server.
        Returns:
        The last server update date.