crwdns120481:0crwdne120481:0

crwdns120483:0:javadoc:crwdnd120483:0:javadoc:crwdne120483:0

crwdns120485:0:javadoc:crwdne120485:0

import org.spongepowered.api.Sponge;
import org.spongepowered.api.command.CommandManager;

PluginContainer plugin = ...;

CommandManager cmdManager = Sponge.getCommandManager();
cmdManager.register(plugin, myCommandSpec, "alias1", "alias2", "alias3");

Note

crwdns120487:0crwdne120487:0

crwdns120489:0crwdne120489:0

cmdManager.process(player, "msg Notch hi notch!");

crwdns120491:0crwdne120491:0

cmdManager.process(Sponge.getServer().getConsole(), "kill Notch");