Flexy Commands
Flexible API for commands in Forge.
Example
There is no need to parse user input by yourself, just define command specifics it will be parsed automatically.
public String getCommandName(){
return "give";
}
@Command("{player} {item}")
public void command(@Arg("player") String playerArg, @Arg("item") String itemArg){
getPlayer(playerArg).inventory.addItem(Item.getItem(itemArg));
}