|
|
@ -152,7 +152,7 @@ public class HuskSyncCommand extends PluginCommand {
|
|
|
|
return (sub) -> {
|
|
|
|
return (sub) -> {
|
|
|
|
sub.setCondition((ctx) -> sub.getUser(ctx).isConsole());
|
|
|
|
sub.setCondition((ctx) -> sub.getUser(ctx).isConsole());
|
|
|
|
sub.setDefaultExecutor((ctx) -> {
|
|
|
|
sub.setDefaultExecutor((ctx) -> {
|
|
|
|
plugin.log(Level.INFO, "Please choose a migrator, then run \"husksync migrate <migrator>\"");
|
|
|
|
plugin.log(Level.INFO, "Please choose a migrator, then run \"husksync migrate start <migrator>\"");
|
|
|
|
plugin.log(Level.INFO, String.format(
|
|
|
|
plugin.log(Level.INFO, String.format(
|
|
|
|
"List of available migrators:\nMigrator ID / Migrator Name:\n%s",
|
|
|
|
"List of available migrators:\nMigrator ID / Migrator Name:\n%s",
|
|
|
|
plugin.getAvailableMigrators().stream()
|
|
|
|
plugin.getAvailableMigrators().stream()
|
|
|
@ -177,7 +177,7 @@ public class HuskSyncCommand extends PluginCommand {
|
|
|
|
sub.addSubCommand("set", (set) -> set.addSyntax((cmd) -> {
|
|
|
|
sub.addSubCommand("set", (set) -> set.addSyntax((cmd) -> {
|
|
|
|
final Migrator migrator = cmd.getArgument("migrator", Migrator.class);
|
|
|
|
final Migrator migrator = cmd.getArgument("migrator", Migrator.class);
|
|
|
|
final String[] args = cmd.getArgument("args", String.class).split(" ");
|
|
|
|
final String[] args = cmd.getArgument("args", String.class).split(" ");
|
|
|
|
migrator.handleConfigurationCommand(Arrays.copyOfRange(args, 3, args.length));
|
|
|
|
migrator.handleConfigurationCommand(args);
|
|
|
|
}, migrator(), BaseCommand.greedyString("args")));
|
|
|
|
}, migrator(), BaseCommand.greedyString("args")));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|