# AbstractBoard
> Abstract base class for creating per-player scoreboards.
`gg.lode.bookshelfapi.api.scoreboard.AbstractBoard`
---
## Signature
```java
public abstract class AbstractBoard
```
---
## Constructor
| Constructor | Description |
|-------------|-------------|
| `AbstractBoard(Player player)` | Creates a board bound to the given player. |
### Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| `player` | `Player` | The player this board belongs to. |
---
## Abstract Methods
| Method | Return Type | Description |
|--------|-------------|-------------|
| `abstract getTitle(Player player)` | `String` | Returns the scoreboard title for the player. |
| `abstract getLines(Player player)` | `String[]` | Returns the scoreboard lines for the player. |
---
## Methods
| Method | Return Type | Description |
|--------|-------------|-------------|
| `getPlayer()` | `Player` | Returns the player this board is assigned to. |
| `update()` | `void` | Refreshes the scoreboard content. |
---
## Usage
```java
public class LobbyBoard extends AbstractBoard {
public LobbyBoard(Player player) {
super(player);
}
@Override
public String getTitle(Player player) {
return "&bMy Server";
}
@Override
public String[] getLines(Player player) {
return new String[]{
"&7Online: &f" + Bukkit.getOnlinePlayers().size(),
"",
"&7Rank: &fMember",
"",
"&ewww.example.com"
};
}
}
```
---
## Related Pages
- [[IScoreboardManager]]