# IPlayerManager
> Interface for resolving Mojang player profiles by username or UUID.
`gg.lode.bookshelfapi.api.manager.IPlayerManager`
---
## Signature
```java
public interface IPlayerManager
```
---
## Methods
| Method | Return Type | Description |
|--------|-------------|-------------|
| `getMojangProfile(String username)` | `MojangProfile` | Fetches a [[MojangProfile]] by username. Throws `IOException`, `ParseException`. |
| `getMojangProfileFromUUID(String uuid)` | `MojangProfile` | Fetches a [[MojangProfile]] by UUID string. Throws `IOException`, `ParseException`. |
### Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| `username` | `String` | The player's Minecraft username. |
| `uuid` | `String` | The player's UUID as a string. |
---
## Usage
```java
IPlayerManager players = BookshelfAPI.getApi().getPlayerManager();
try {
MojangProfile profile = players.getMojangProfile("Notch");
String uuid = profile.getUniqueId();
String name = profile.getName();
} catch (IOException | ParseException e) {
e.printStackTrace();
}
```
---
## Related Pages
- [[IBookshelfAPI]]
- [[MojangProfile]]