mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
stops colour parsing for inputs
This commit is contained in:
parent
feafa0d5a7
commit
fe4ecd2d9f
@ -24,7 +24,7 @@ public class InputBuilder {
|
||||
Player player = builder.getPlayer();
|
||||
TextDialogInput.Builder inputBuilder = DialogInput
|
||||
.text(item.getId(), ctx.text.parseTextToComponent(player, item.getName()))
|
||||
.initial(ctx.text.parseTextToString(player, item.getInitial()))
|
||||
.initial(ctx.text.applyPlaceholders(player, item.getInitial()))
|
||||
.width(builder.parseInt(item.getWidth()))
|
||||
.maxLength(builder.parseInt(item.getMaxLength()));
|
||||
|
||||
|
||||
@ -57,7 +57,8 @@ public class CustomForm {
|
||||
switch (comp) {
|
||||
case FloodgateLabel input -> {
|
||||
form.label(
|
||||
parseText(input.getName().replaceAll("\\\\n", "\n"))
|
||||
ctx.text.applyPlaceholders(player,
|
||||
input.getName().replaceAll("\\\\n", "\n"))
|
||||
);
|
||||
inputOrder.add(input);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user