Move SystemComandMap From ChatScene to Its Own Component #74

Merged
delvh merged 5 commits from f/chatscene-commands into develop 2020-10-02 15:23:22 +02:00
Showing only changes of commit f077691c47 - Show all commits

View File

@ -20,20 +20,4 @@ public interface Callable {
* @since Envoy Client v0.2-beta
*/
void call(List<String> arguments);
/**
* Performs the instance specific action when a {@link SystemCommand} has been
* called and additionally enables the user to execute his own action once it
* has been called.
*
* @param arguments the arguments that should be passed to the
* {@link SystemCommand}
* @param additionalAction the action to perform when this system command has
* been called
* @since Envoy Client v0.2-beta
*/
default void call(List<String> arguments, Runnable additionalAction) {
call(arguments);
additionalAction.run();
}
}