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.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
-
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
-