Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@ void executeChat(@Flag("-raw") boolean raw, @Join String text) {
}

@Execute(name = "title")
@DescriptionDocs(description = "Broadcasts a TITLE message to all players.", arguments = "[-raw] <text>")
void executeTitle(@Flag("-raw") boolean raw, @Join String title) {
this.sendBroadcast(formatted -> Notice.title(formatted, "", this.settings.titleFadeIn(), this.settings.titleStay(), this.settings.titleFadeOut()), title, raw);
}
@DescriptionDocs(description = "Broadcasts a combined title message to all players.", arguments = "[-raw] <text>")
Copy link
Member

Choose a reason for hiding this comment

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

In other parts of the plugin [...] squere brackets mean optional argument.

Image

Not everywhere but can be fixed here too :D

Either set is as optional or change the [...]

void executeTitle(@Flag("-raw") boolean raw, @Join String text) {

@Execute(name = "subtitle")
@DescriptionDocs(description = "Broadcasts a SUBTITLE message to all players.", arguments = "[-raw] <text>")
void executeSubtitle(@Flag("-raw") boolean raw, @Join String subtitle) {
this.sendBroadcast(formatted -> Notice.title("", formatted, this.settings.titleFadeIn(), this.settings.titleStay(), this.settings.titleFadeOut()), subtitle, raw);
this.noticeService.create()
.notice(translation -> Notice.title(raw ? " " : translation.broadcast().messageFormat(), text,
this.settings.titleFadeIn(), this.settings.titleStay(), this.settings.titleFadeOut()))
.onlinePlayers()
.send();
}

@Execute(name = "actionbar")
Expand Down