Interface IPlayerClaimImpersonationInfoAPI
public interface IPlayerClaimImpersonationInfoAPI
API for a player's info about player impersonation
-
Method Summary
Modifier and TypeMethodDescriptionGets the player UUID used for claims under a specified claiming mode when the player with a non-null UUID returned bygetPlayerId()is being impersonated by this player.Gets the UUID of the player that is currently being impersonated for claims by this player.intgetSubIndex(IClaimingModeAPI mode) Gets the index of the sub-claim used for claims under a specified claiming mode when the player with a non-null UUID returned bygetPlayerId()is being impersonated by this player.
-
Method Details
-
getPlayerId
Gets the UUID of the player that is currently being impersonated for claims by this player.- Returns:
- the UUID of the impersonated player, null when not impersonating anyone
-
getClaimPlayerId
Gets the player UUID used for claims under a specified claiming mode when the player with a non-null UUID returned bygetPlayerId()is being impersonated by this player.- Parameters:
mode- the claiming mode, not null- Returns:
- the player UUID used for claims under a specified claiming mode, can be null
-
getSubIndex
Gets the index of the sub-claim used for claims under a specified claiming mode when the player with a non-null UUID returned bygetPlayerId()is being impersonated by this player.- Parameters:
mode- the claiming mode, not null- Returns:
- the sub-claim index, -1 for the main sub-claim
-