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>")
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