abvadabra / flexy-commands

Flexible API for commands in Forge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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));
}

More Information

About

Flexible API for commands in Forge


Languages

Language:Java 100.0%