Package cn.lunadeer.dominion.api.dtos
Interface PlayerDTO
public interface PlayerDTO
Interface representing a Player Data Transfer Object (DTO).
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the ID of the player.Gets the last known name of the player.Gets the ID of the group title the player is using.getUuid()
Gets the UUID of the player.updateLastKnownName
(String name) Updates the last known name of the player.
-
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
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
-
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
-