The CommandAPI has the ability to convert plugin commands into "Vanilla compatible" commands automatically on startup. This allows you to use
/execute and Minecraft functions/tags for plugins that do not use the CommandAPI. For example, if you want to use the
/hat command from the plugin
Essentials in an
/execute command or from a command block, you can use the CommandAPI's command conversion setting to do so.
The CommandAPI has 3 different conversion methods, each one more specific and powerful than the others. These are the following:
Converts all commands from a plugin into Vanilla compatible commands
Converts a single command into a Vanilla compatible command
Converts a single command from a plugin into a Vanilla compatible command, whilst also declaring what the arguments to the command are
Drag a plugin here to view a list of available commands which can be registered for the CommandAPI.
Drag and drop a plugin .jar file here
To configure command conversion, the CommandAPI reads this information from the
config.yml file. This file has a bit of a weird structure, so to put it simply, these are the following rules:
config.ymlcannot have tab characters - The
config.ymlfile must only consist of spaces!
- Indentation is important and should be two spaces
If you're uncertain if your configuration is valid (or you're getting weird errors in the console), you can check if your configuration is valid by dropping your
config.yml file below:
Drag and drop your config.yml here
To convert all of the commands that a plugin has, add the name of the plugin, followed by a
~ character to the list of plugins to convert in the
For example, if you wanted to convert all commands that EssentialsX has, you can use the following
- Essentials: ~