Interface IPlayerClaimImpersonationInfoAPI


public interface IPlayerClaimImpersonationInfoAPI
API for a player's info about player impersonation
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the player UUID used for claims under a specified claiming mode when the player with a non-null UUID returned by getPlayerId() is being impersonated by this player.
    Gets the UUID of the player that is currently being impersonated for claims by this player.
    int
    Gets the index of the sub-claim used for claims under a specified claiming mode when the player with a non-null UUID returned by getPlayerId() is being impersonated by this player.
  • Method Details

    • getPlayerId

      @Nullable UUID 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

      @Nullable UUID getClaimPlayerId(@Nonnull IClaimingModeAPI mode)
      Gets the player UUID used for claims under a specified claiming mode when the player with a non-null UUID returned by getPlayerId() 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

      int getSubIndex(@Nonnull 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 by getPlayerId() is being impersonated by this player.
      Parameters:
      mode - the claiming mode, not null
      Returns:
      the sub-claim index, -1 for the main sub-claim