# Commands

By
micartey

To handle commands you have to implement Command

public interface Command {

    boolean execute(CommandSender sender, String command, String[] arguments, String raw);

}

# Register Commands

You can register commands just like events with Extension.registerCommand

import me.clientastisch.cardinal.extension.Extension;
import me.clientastisch.cardinal.extension.impl.Addon;

public class Core implements Addon {

    @Override
    public void onEnable() throws Exception {
        Extension.registerCommand(this, new MyWonderfulCommand());
    }

    @Override
    public void onDisable() throws Exception {

    }
}