Skip to content

Commit ecf9caa

Browse files
committed
Fixed CommandFramework#getSubCommands method
1 parent 808b3bf commit ecf9caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/despical/commandframework/CommandFramework.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ protected final void setCommandMap(CommandMap commandMap) {
232232
@Contract(pure = true)
233233
public final List<Command> getCommands() {
234234
List<Command> commands = new ArrayList<>(this.registry.getCommands());
235-
commands.addAll(this.registry.getCommands());
235+
commands.addAll(this.registry.getSubCommands());
236236

237237
return commands;
238238
}

0 commit comments

Comments
 (0)