use of dev.rosewood.rosestacker.manager.ConversionManager in project RoseStacker by Rosewood-Development.
the class RoseCommand method onConvert.
@Subcommand("convert")
@CommandPermission("rosestacker.convert")
@CommandCompletion("@conversionType")
public void onConvert(CommandSender sender, StackPlugin stackPlugin) {
ConversionManager conversionManager = this.rosePlugin.getManager(ConversionManager.class);
LocaleManager localeManager = this.rosePlugin.getManager(LocaleManager.class);
if (conversionManager.convert(stackPlugin)) {
localeManager.sendMessage(sender, "command-convert-converted", StringPlaceholders.single("plugin", stackPlugin.name()));
} else {
localeManager.sendMessage(sender, "command-convert-failed", StringPlaceholders.single("plugin", stackPlugin.name()));
}
}
Aggregations