Basic JDA command handler
First you need to create an instance of the API class
YerAPI yerAPI = new API(jda);
yerAPI.getCommandHandler().registerCommand(new CommandClass("prefix","command"));
public class CommandClass extends Command {
public CommandClass(String command, String prefix) {
super(command, prefix);
}
@APermission(Permission = Permission.UNKNOW, Message = "You don't have permissions")
public void execute(MessageReceivedEvent event) {
event.getChannel().sendMessage("This is a command").queue();
}