Package cn.lunadeer.dominion.api.dtos
Interface TemplateDTO
public interface TemplateDTO
A reusable set of member privilege values owned by a player.
Templates can be applied to a member through
TemplateProvider.
-
Method Summary
Modifier and TypeMethodDescription@NotNull UUIDGets the UUID of the player who owns the template.Gets all explicitly stored privilege values in this template.@NotNull BooleangetFlagValue(@NotNull PriFlag flag) Gets the value of a privilege flag in this template.@NotNull IntegergetId()Gets the template identifier.@NotNull StringgetName()Gets the template name.
-
Method Details
-
getId
Gets the template identifier.- Returns:
- the template identifier
-
getCreator
Gets the UUID of the player who owns the template.- Returns:
- the creator's UUID
-
getName
Gets the template name.- Returns:
- the template name
-
getFlagValue
Gets the value of a privilege flag in this template.- Parameters:
flag- the privilege flag- Returns:
- the configured value, or the flag's default value when no value is stored
-
getFlagsValue
Gets all explicitly stored privilege values in this template.- Returns:
- a map from privilege flags to values
-