mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
Compare commits
3 Commits
feafa0d5a7
...
e2f2be8e8a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2f2be8e8a | ||
|
|
e57ced0625 | ||
|
|
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);
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ public class CommandRunner {
|
||||
String tag = parts[0];
|
||||
|
||||
String args = (parts.length > 1) ? parts[1].trim() : "";
|
||||
String argsParsed = ctx.text.parseTextToString(player, args);
|
||||
String argsParsed = ctx.text.applyPlaceholders(player, args);
|
||||
|
||||
if (resolver.isCorrectTag(tag)) {
|
||||
resolver.handle(ctx, panel, player, args, argsParsed);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user