Skip to content

Commit 0cf5d78

Browse files
committed
Fix noSuchMethod error
1 parent eac851d commit 0cf5d78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bukkit-example/src/main/java/com/lunarclient/apollo/example/modules/NotificationExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public class NotificationExample {
4040
private final Notification uhcAnnouncement = Notification.builder()
4141
.titleComponent(Component.text("UHC Announcement", NamedTextColor.GREEN))
4242
.descriptionComponent(Component.text("UHC starts in 5 minutes...", NamedTextColor.RED)
43-
.appendNewline()
43+
.append(Component.newline())
4444
.append(Component.text("Get ready!", NamedTextColor.WHITE))
45-
.appendNewline()
45+
.append(Component.newline())
4646
.append(Component.text("Good luck!", NamedTextColor.GOLD))
4747
)
4848
.resourceLocation("icons/golden_apple.png") // This field is optional

docs/developers/modules/notification.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ The notification module allows you to send Lunar Client notifications to players
2424
private final Notification uhcAnnouncement = Notification.builder()
2525
.titleComponent(Component.text("UHC Announcement", NamedTextColor.GREEN))
2626
.descriptionComponent(Component.text("UHC starts in 5 minutes...", NamedTextColor.RED)
27-
.appendNewline()
27+
.append(Component.newline())
2828
.append(Component.text("Get ready!", NamedTextColor.WHITE))
29-
.appendNewline()
29+
.append(Component.newline())
3030
.append(Component.text("Good luck!", NamedTextColor.GOLD))
3131
)
3232
.resourceLocation("icons/golden_apple.png") // This field is optional

0 commit comments

Comments
 (0)