Interface PlayerDTO


public interface PlayerDTO
Interface representing a Player Data Transfer Object (DTO).
  • Method Details

    • getId

      Integer getId()
      Gets the ID of the player.
      Returns:
      the ID of the player
    • getUuid

      UUID getUuid()
      Gets the UUID of the player.
      Returns:
      the UUID of the player
    • getLastKnownName

      String getLastKnownName()
      Gets the last known name of the player.
      Returns:
      the last known name of the player
    • updateLastKnownName

      PlayerDTO updateLastKnownName(@NotNull @NotNull String name, @Nullable @Nullable URL skinUrl) throws SQLException, MalformedURLException
      Updates the last known name of the player. Returns the updated player object.
      Parameters:
      name - the new last known name of the player
      Returns:
      the updated player object
      Throws:
      SQLException
      MalformedURLException
    • getUsingGroupTitleID

      Integer getUsingGroupTitleID()
      Gets the ID of the group title the player is using.
      Returns:
      the ID of the group title the player is using
    • getSkinUrl

      @NotNull @NotNull URL getSkinUrl() throws MalformedURLException
      Gets the URL of the player's skin.
      Returns:
      the URL of the player's skin
      Throws:
      MalformedURLException
    • getUiPreference

      @NotNull @NotNull PlayerDTO.UI_TYPE getUiPreference()
      Gets the player's preferred user interface type.
      Returns:
      the preferred user interface type
    • setUiPreference

      void setUiPreference(PlayerDTO.UI_TYPE uiType) throws SQLException
      Sets the player's preferred user interface type.
      Parameters:
      uiType - the preferred user interface type to set
      Throws:
      SQLException - if an error occurs while updating the database