Compare commits

..

1 Commits

Author SHA1 Message Date
96fcbabfe6 resolve tags in click for flag info command 2022-05-14 20:49:12 +02:00
3 changed files with 4 additions and 4 deletions

View File

@ -689,8 +689,8 @@ public final class FlagCommand extends Command {
TranslatableCaption.of("flag.flag_info_example"),
TagResolver.builder()
.tag("command", Tag.preProcessParsed("/plot flag set"))
.tag("flag", Tag.inserting(Component.text(plotFlag.getName())))
.tag("value", Tag.inserting(Component.text(plotFlag.getExample())))
.tag("flag", Tag.preProcessParsed(plotFlag.getName()))
.tag("value", Tag.preProcessParsed(plotFlag.getExample()))
.build()
);
// Default value

View File

@ -58,7 +58,7 @@ public class DescriptionFlag extends StringFlag<DescriptionFlag> {
@Override
public String getExample() {
return "<gold>This is my plot!";
return "&6This is my plot!";
}
@Override

View File

@ -58,7 +58,7 @@ public class GreetingFlag extends StringFlag<GreetingFlag> {
@Override
public String getExample() {
return "<gold>Welcome to my plot!";
return "&6Welcome to my plot!";
}
@Override