aikar / aikar/commands

CommandHelp shown as parameter

Đang mở
#219 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
core
Ngôn ngữ chính
Java
Star
628
Fork
150
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hello,

I just use the Beta Help-system. He works perfectly nice except for one thing.
Let's considered this simple command:
```java
@HelpCommand
@Subcommand("h|help")
public static void helpContext(final CommandIssuer commandIssuer, final CommandHelp commandHelp, final @Default("1") Integer page) {
commandIssuer.sendMessage("Hi");
}
```

When I type `/guild help` (or `/guild h`), this help command is shown as a two parameter command:

![image](https://user-images.githubusercontent.com/25774021/59709802-e3747f80-9207-11e9-9eac-a34ae5140234.png)

This is an unexpected behavior, since this command really has only one parameter.

Exactly same as `CommandIssuer` , `CommandHelp` should be detected as a special parameter and not count on the final command.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.