Skip to content

Commit

Permalink
docs: update leaderboards section
Browse files Browse the repository at this point in the history
  • Loading branch information
max1mde authored Dec 15, 2024
1 parent cf443fa commit 52879d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ hologramManager.spawn(hologram, location);
```

### Leaderboard Creation

<img src="https://github.com/user-attachments/assets/68b8ded4-c307-44e9-a746-6777ff9b6205" width="400">

```java
Map<Integer, String> leaderboardData = new LinkedHashMap<>() {{
put(1, "PlayerOne:1000");
Expand All @@ -122,7 +125,7 @@ Map<Integer, String> leaderboardData = new LinkedHashMap<>() {{
TextHologram leaderboard = hologramManager.generateLeaderboard(
location,
leaderboardData,
HologramManager.LeaderboardOptions.builder()
HologramManager.LeaderboardOptions.builder() // There are even more option in this builder like the title and footer design
.title("Top Players")
.showEmptyPlaces(true)
.scale(1.2f)
Expand Down

0 comments on commit 52879d4

Please sign in to comment.