Fix some velocity related issues
This commit is contained in:
parent
1c831a3bcf
commit
0ccf8d37e6
6 changed files with 14 additions and 12 deletions
|
|
@ -79,14 +79,14 @@ public class CloudVelocityTest {
|
|||
}
|
||||
|
||||
@CommandMethod("test <num> [str]")
|
||||
private void testCommand(@Nonnull @Argument("str") final String string,
|
||||
private void testCommand(@Nonnull @Argument(value = "str", defaultValue = "potato") final String string,
|
||||
@Nonnull final CommandSource source,
|
||||
@Argument("num") @Range(min = "10", max = "33") final int num) {
|
||||
source.sendMessage(TextComponent.builder()
|
||||
.append("You wrote: ", NamedTextColor.GOLD)
|
||||
.append(string, NamedTextColor.LIGHT_PURPLE)
|
||||
.append(string, NamedTextColor.RED)
|
||||
.append(" and ", NamedTextColor.GOLD)
|
||||
.append(Integer.toString(num), NamedTextColor.LIGHT_PURPLE)
|
||||
.append(Integer.toString(num), NamedTextColor.RED)
|
||||
.append("!", NamedTextColor.GOLD)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue