Skip to content

Commit

Permalink
Update CommandHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rainestormee authored Aug 25, 2019
1 parent 3bb8f06 commit b7a37f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public Set<AbstractCommand> getCommands() {
* @return The {@link AbstractCommand} that was found, sometimes <code>null</code>
* @since 1.0.0
*/
public AbstractCommand findCommand(String trigger) {
public AbstractCommand<T> findCommand(String trigger) {
return commands.stream().filter(cd -> Arrays.asList(cd.getDescription().triggers()).contains(trigger)).findFirst().orElse(null);
}

Expand Down Expand Up @@ -159,4 +159,4 @@ public void findAndExecute(String trigger, T message, String args) {
return;
this.execute(command, message, args);
}
}
}

0 comments on commit b7a37f8

Please sign in to comment.