ICommandManager
Link to icommandmanager
Интерфейс ICommandManager управляет командами. So you can use it to get and execute commands.
You can get this from an IServer object.
Импорт пакета
Link to импорт-пакета
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.command.ICommandManager;
ZenGetters
Link to zengetters
ZenGetter | Тип |
---|---|
ZenGetter commands | Тип Map<String, ICommand> |
ZenMethods
Link to zenmethods
- int executeCommand(ICommandSender sender, String rawCommand);
- List<String> getTabCompletions(ICommandSender sender, String input, @Optional IBlockPos pos);
- List<ICommand> getPossibleCommands(ICommandSender sender);
Дополнительная информация
Link to дополнительная-информация
Чтобы добавить свою команду, обратите внимание на CommandEvent.