Package dev.jorel.commandapi
Class Converter
java.lang.Object
dev.jorel.commandapi.Converter
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidConvert the provided command name into a CommandAPI-compatible commandstatic voidConvert the provided command name with its list of arguments into a CommandAPI-compatible commandstatic voidconvert(org.bukkit.plugin.java.JavaPlugin plugin) Convert all commands stated in Plugin's plugin.yml file into CommandAPI-compatible commandsstatic voidConvert a command stated in Plugin's plugin.yml file into CommandAPI-compatible commandsstatic voidConvert a command stated in Plugin's plugin.yml file into CommandAPI-compatible commandsstatic voidConvert a command stated in Plugin's plugin.yml file into CommandAPI-compatible commands
-
Method Details
-
convert
public static void convert(org.bukkit.plugin.java.JavaPlugin plugin) Convert all commands stated in Plugin's plugin.yml file into CommandAPI-compatible commands- Parameters:
plugin- The plugin which commands are to be converted
-
convert
Convert a command stated in Plugin's plugin.yml file into CommandAPI-compatible commands- Parameters:
plugin- The plugin where the command is registeredcmdName- The command to convert
-
convert
public static void convert(org.bukkit.plugin.java.JavaPlugin plugin, String cmdName, Argument<?>... arguments) Convert a command stated in Plugin's plugin.yml file into CommandAPI-compatible commands- Parameters:
plugin- The plugin where the command is registeredcmdName- The command to convertarguments- The arguments that should be used to parse this command
-
convert
public static void convert(org.bukkit.plugin.java.JavaPlugin plugin, String cmdName, List<Argument<?>> arguments) Convert a command stated in Plugin's plugin.yml file into CommandAPI-compatible commands- Parameters:
plugin- The plugin where the command is registeredcmdName- The command to convertarguments- The arguments that should be used to parse this command
-
convert
Convert the provided command name into a CommandAPI-compatible command- Parameters:
cmdName- The name of the command (without the leading /). For commands such as //set in WorldEdit, this parameter should be "/set"
-
convert
Convert the provided command name with its list of arguments into a CommandAPI-compatible command- Parameters:
cmdName- The name of the command (without the leading /). For commands such as //set in WorldEdit, this parameter should be "/set"arguments- The arguments that should be used to parse this command
-