Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 942 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 942 Bytes

Cap

Codacy Badge

Command & permission library

How to use

Handler method:

@Command("say")
public void say(@Sender CommandSender sender,String message){
    System.out.println(sender.getSenderName()+": "+message);
}

Register

SimpleCommandManager simpleCommandManager = new SimpleCommandManager();
MethodAnnotationCommand.getBuilder(simpleCommandManager)
        .addCommandHandler(this)
        .register();

Execute

simpleCommandManager.execute(testSender, "say hello!");