|
CommandAPI 12.1.0
An API for the command UI introduced in Minecraft 1.13
|
A class that contains information needed to configure the CommandAPI on Bukkit-based servers. More...
Public Member Functions | |
| CommandAPIBukkitConfig (String pluginName) | |
| Creates a new CommandAPIBukkitConfig object. | |
| T | fallbackToLatestNMS (boolean fallbackToLatestNMS) |
| Sets whether the CommandAPI should fall back to the latest nms version if no implementation for the current version was found. | |
| T | addSkipSenderProxy (String... names) |
| T | addSkipSenderProxy (List< String > names) |
| T | setNamespace (String namespace) |
| Sets the default namespace to use when register commands. | |
| abstract T | instance () |
A class that contains information needed to configure the CommandAPI on Bukkit-based servers.
| dev.jorel.commandapi.CommandAPIBukkitConfig< T extends CommandAPIBukkitConfig< T > >.CommandAPIBukkitConfig | ( | String | pluginName | ) |
Creates a new CommandAPIBukkitConfig object.
Variables in this constructor are required to load the CommandAPI on Bukkit properly.
| pluginName | The name of the JavaPlugin that is loading the CommandAPI |
| T dev.jorel.commandapi.CommandAPIBukkitConfig< T extends CommandAPIBukkitConfig< T > >.fallbackToLatestNMS | ( | boolean | fallbackToLatestNMS | ) |
Sets whether the CommandAPI should fall back to the latest nms version if no implementation for the current version was found.
| fallbackToLatestNMS | whether to fall back to the latest versions |
| T dev.jorel.commandapi.CommandAPIBukkitConfig< T extends CommandAPIBukkitConfig< T > >.setNamespace | ( | String | namespace | ) |
Sets the default namespace to use when register commands.
This namespace can't be null or empty and has to match the regex: [0-9a-z_.-]+
| namespace | the namespace to use when register commands |