Interface IPlayerConfigManagerAPI
public interface IPlayerConfigManagerAPI
API for the player config manager on the server side
-
Method Summary
Modifier and TypeMethodDescriptionGets a stream of all player config option types, including the dynamic ones.Gets the default player config instance.Gets the expired claims config instance.getLoadedConfig(UUID id) Gets or creates the player config for the player with a specified UUID.getOptionForId(String id) Gets the option type specification with a specified string option id, including dynamic options.getPartyOwnerConfig(UUID memberId) Gets or creates the player config of the owner of the party that the player with a specified UUID is a member of.Gets the server claims config instance.Gets the wilderness config instance.
-
Method Details
-
getLoadedConfig
Gets or creates the player config for the player with a specified UUID.Gets the wilderness config if the specified UUID is null, the server claims config if the UUID is
PlayerConfig.SERVER_CLAIM_UUID, the expired claims config if the UUID isPlayerConfig.EXPIRED_CLAIM_UUID.- Parameters:
id- the UUID of the player, null for wilderness- Returns:
- the player config instance, not null
-
getPartyOwnerConfig
Gets or creates the player config of the owner of the party that the player with a specified UUID is a member of.The party owner's config is used as the config for the claims owned by the party when the server has party-owned claims enabled.
The party system used is the configured primary party system.
- Parameters:
memberId- the UUID of the player who is a member of the party, not null- Returns:
- the party owner's player config, null if the player is not in a party
-
getDefaultConfig
Gets the default player config instance.- Returns:
- the default player config instance, not null
-
getWildernessConfig
Gets the wilderness config instance.- Returns:
- the wilderness config instance, not null
-
getServerClaimConfig
Gets the server claims config instance.- Returns:
- the server claims config instance, not null
-
getExpiredClaimConfig
Gets the expired claims config instance.- Returns:
- the expired claims config instance, not null
-
getAllOptionsStream
Gets a stream of all player config option types, including the dynamic ones.- Returns:
- a stream of all player config options, not null
-
getOptionForId
Gets the option type specification with a specified string option id, including dynamic options.Returns null if no such option exists.
- Parameters:
id- the option id, not null- Returns:
- the option type specification instance, null when doesn't exist
-