Skip to content

Commit d9a835c

Browse files
committed
aliases
1 parent 1bb854d commit d9a835c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/klash/caramel/CaramelCommandList.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public boolean onCommand(CommandSender sender, String label, String[] args) {
7575
*/
7676
public List<String> onTabComplete(@NotNull Command command, @NotNull String[] args) {
7777
for(CaramelCommand cmd : getCommandList()) {
78-
if(cmd.getDetails().label().equalsIgnoreCase(command.getLabel())) {
78+
if(cmd.getDetails().label().equalsIgnoreCase(command.getLabel()) || Arrays.asList(cmd.getDetails().aliases()).contains(command.getLabel().toLowerCase())) {
7979
return cmd.complete(args);
8080
}
8181
}

0 commit comments

Comments
 (0)