(work in progress) - Inject CommandService like other classes instead of passing it as method parameter - Not solved: cyclic dependency CommandInitializer > ExecutableCommand > CommandService > CommandInitializer...
21 lines
463 B
Java
21 lines
463 B
Java
package fr.xephi.authme.command;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Base class for AuthMe commands that can be executed.
|
|
*/
|
|
public interface ExecutableCommand {
|
|
|
|
/**
|
|
* Executes the command with the given arguments.
|
|
*
|
|
* @param sender the command sender (initiator of the command)
|
|
* @param arguments the arguments
|
|
*/
|
|
void executeCommand(CommandSender sender, List<String> arguments);
|
|
|
|
}
|