Skip to content

Commit

Permalink
Fix subtitle List generic (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
RappyTV authored Sep 5, 2024
1 parent f43aad4 commit ad139ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/server/labymod/displays/subtitles.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ While not recommended, it is also possible to send the subtitles directly via th

```java
// Create or get a List of subtitles (array is also possible)
List<Permission.StatedPermission> subtitles = new ArrayList<>();
List<Subtitle> subtitles = new ArrayList<>();

// Add all subtitles you want to send to the player
subtitles.add(Subtitle.create(uniqueId, ServerAPIComponent.text("Example Subtitle")));
Expand Down

0 comments on commit ad139ab

Please sign in to comment.