crwdns150373:0crwdne150373:0
crwdns150375:0:javadoc:crwdnd150375:0:javadoc:crwdne150375:0
crwdns150377:0:javadoc:crwdne150377:0
import org.spongepowered.api.Sponge;
import org.spongepowered.api.command.CommandManager;
CommandManager cmdManager = Sponge.getCommandManager();
cmdManager.register(this, myCommandSpec, "alias1", "alias2", "alias3");
Note
crwdns150379:0crwdne150379:0
crwdns150381:0crwdne150381:0
cmdManager.process(player, "msg Notch hi notch!");
crwdns150383:0crwdne150383:0
cmdManager.process(Sponge.getServer().getConsole(), "kill Notch");