Fix parsing placeholders

This commit is contained in:
ceze88 2024-08-13 19:20:33 +02:00
parent f544f1c1a2
commit 4ffe76f74a

View File

@ -52,8 +52,8 @@ public class KitGuiOptionsGui extends Gui {
this.plugin.getLocale().getMessage("interface.kitguioptions.holo").toText(), this.plugin.getLocale().getMessage("interface.kitguioptions.holo").toText(),
this.plugin.getLocale().getMessage("interface.kitguioptions.hololore") this.plugin.getLocale().getMessage("interface.kitguioptions.hololore")
.processPlaceholder("onoff", .processPlaceholder("onoff",
this.kit.getTitle() != null ? this.plugin.getLocale().getMessage("interface.kitguioptions.holoon").processPlaceholder("title", this.kit.getTitle()).getMessage() this.kit.getTitle() != null ? this.plugin.getLocale().getMessage("interface.kitguioptions.holoon").processPlaceholder("title", this.kit.getTitle()).toText()
: this.plugin.getLocale().getMessage("interface.kitguioptions.holooff").getMessage() : this.plugin.getLocale().getMessage("interface.kitguioptions.holooff").toText()
).toText().split("\\|")), ).toText().split("\\|")),
ClickType.LEFT, ClickType.LEFT,
event -> { event -> {
@ -86,8 +86,8 @@ public class KitGuiOptionsGui extends Gui {
this.plugin.getLocale().getMessage("interface.kitguioptions.itemlore") this.plugin.getLocale().getMessage("interface.kitguioptions.itemlore")
.processPlaceholder("onoff", .processPlaceholder("onoff",
this.kit.getDisplayItem() != null ? this.plugin.getLocale().getMessage("interface.kitguioptions.itemon") this.kit.getDisplayItem() != null ? this.plugin.getLocale().getMessage("interface.kitguioptions.itemon")
.processPlaceholder("item", this.kit.getDisplayItem().toString()).getMessage() .processPlaceholder("item", this.kit.getDisplayItem().toString()).toText()
: this.plugin.getLocale().getMessage("interface.kitguioptions.itemoff").getMessage() : this.plugin.getLocale().getMessage("interface.kitguioptions.itemoff").toText()
).toText().split("\\|")), ).toText().split("\\|")),
ClickType.LEFT, ClickType.LEFT,
event -> { event -> {