Skip to content

UnknownDomainGames/Cap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!");

Releases

No releases published

Packages

No packages published

Languages