Skip to content

Commit

Permalink
Fix noSuchMethod error
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsNature committed Oct 3, 2024
1 parent eac851d commit 0cf5d78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public class NotificationExample {
private final Notification uhcAnnouncement = Notification.builder()
.titleComponent(Component.text("UHC Announcement", NamedTextColor.GREEN))
.descriptionComponent(Component.text("UHC starts in 5 minutes...", NamedTextColor.RED)
.appendNewline()
.append(Component.newline())
.append(Component.text("Get ready!", NamedTextColor.WHITE))
.appendNewline()
.append(Component.newline())
.append(Component.text("Good luck!", NamedTextColor.GOLD))
)
.resourceLocation("icons/golden_apple.png") // This field is optional
Expand Down
4 changes: 2 additions & 2 deletions docs/developers/modules/notification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ The notification module allows you to send Lunar Client notifications to players
private final Notification uhcAnnouncement = Notification.builder()
.titleComponent(Component.text("UHC Announcement", NamedTextColor.GREEN))
.descriptionComponent(Component.text("UHC starts in 5 minutes...", NamedTextColor.RED)
.appendNewline()
.append(Component.newline())
.append(Component.text("Get ready!", NamedTextColor.WHITE))
.appendNewline()
.append(Component.newline())
.append(Component.text("Good luck!", NamedTextColor.GOLD))
)
.resourceLocation("icons/golden_apple.png") // This field is optional
Expand Down

1 comment on commit 0cf5d78

@LunarClientBot
Copy link
Collaborator

@LunarClientBot LunarClientBot commented on 0cf5d78 Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📄 Documentation Deployment

Status:✅ Completed
Environment:preview
URL:https://1e3a8cbb.lunarclient-dev.pages.dev

Please sign in to comment.