mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 03:29:46 +01:00
Fix parsing placeholders
This commit is contained in:
parent
f544f1c1a2
commit
4ffe76f74a
@ -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 -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user