ICommandManager
Link to icommandmanager
The ICommandManager interface is managing commands. So you can use it to get and execute commands.
You can get this from an IServer object.
Dieses Paket importieren
Link to dieses-paket-importieren
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;
ZenGetter
Link to zengetter
Copy<th>
Type
</th>
Copy<td>
Map<String, <a href="/Vanilla/Commands/ICommand/">ICommand</a>\>
</td>
ZenGetter |
---|
commands |
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);
Additional Info
Link to additional-info
To add your own command, look at CommandEvent