Fix CommandManager method naming so that it is in sync with the 1.1.0 API

This commit is contained in:
Andrew Steinborn
2021-05-23 14:20:59 -04:00
parent b632431ae9
commit 3f50964f36
5 changed files with 24 additions and 24 deletions

View File

@@ -77,7 +77,7 @@ public interface CommandManager {
* @return a future that may be completed with the result of the command execution.
* Can be completed exceptionally if an exception is thrown during execution.
*/
CompletableFuture<Boolean> execute(CommandSource source, String cmdLine);
CompletableFuture<Boolean> executeAsync(CommandSource source, String cmdLine);
/**
* Attempts to asynchronously execute a command from the given {@code cmdLine}
@@ -88,7 +88,7 @@ public interface CommandManager {
* @return a future that may be completed with the result of the command execution.
* Can be completed exceptionally if an exception is thrown during execution.
*/
CompletableFuture<Boolean> executeImmediately(CommandSource source, String cmdLine);
CompletableFuture<Boolean> executeImmediatelyAsync(CommandSource source, String cmdLine);
/**
* Returns whether the given alias is registered on this manager.