Hackily solve issue where Bukkit doesn't create a new Brigadier command per alias, so that command aliases get the full Brigadier treatment
This commit is contained in:
parent
1fede2b4c0
commit
d83690cdcf
14 changed files with 213 additions and 82 deletions
|
|
@ -81,7 +81,7 @@ public class CloudVelocityTest {
|
|||
@CommandMethod("test <num> [str]")
|
||||
private void testCommand(@Nonnull @Argument("str") final String string,
|
||||
@Nonnull final CommandSource source,
|
||||
@Argument("num") @Range(max = "33") final int num) {
|
||||
@Argument("num") @Range(min = "10", max = "33") final int num) {
|
||||
source.sendMessage(TextComponent.builder()
|
||||
.append("You wrote: ", NamedTextColor.GOLD)
|
||||
.append(string, NamedTextColor.LIGHT_PURPLE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue