diff --git a/src/main/java/cc/happyareabean/sjm/commands/SJMCommand.java b/src/main/java/cc/happyareabean/sjm/commands/SJMCommand.java index ed9fd57..ad03beb 100644 --- a/src/main/java/cc/happyareabean/sjm/commands/SJMCommand.java +++ b/src/main/java/cc/happyareabean/sjm/commands/SJMCommand.java @@ -134,8 +134,8 @@ public void regenerate(BukkitCommandActor actor) { .append(text(fileName, NamedTextColor.GRAY))); } - @Subcommand({"sync create"}) - @Description("Create a sync collection with current join message") + @Subcommand({"collection create"}) + @Description("Create a collection with current join message") public void create(BukkitCommandActor actor, String collectionName) { actor.reply(Constants.PREFIX.append(text("Creating collection %s...".formatted(collectionName), NamedTextColor.YELLOW))); @@ -153,8 +153,8 @@ public void create(BukkitCommandActor actor, String collectionName) { }); } - @Subcommand({"sync remove"}) - @Description("Remove a sync collection") + @Subcommand({"collection remove"}) + @Description("Remove a collection") public void remove(BukkitCommandActor actor, String collectionName) { actor.reply(Constants.PREFIX.append(text("Removing collection %s...".formatted(collectionName), NamedTextColor.YELLOW))); @@ -179,8 +179,8 @@ public void remove(BukkitCommandActor actor, String collectionName) { }); } - @Subcommand({"sync set"}) - @Description("Set sync collection") + @Subcommand({"collection set"}) + @Description("Set collection target for sync on startup") public void set(BukkitCommandActor actor, String collectionName) { SJMSync sync = SimpleJoinMessage.getInstance().getSyncConfig(); @@ -188,7 +188,7 @@ public void set(BukkitCommandActor actor, String collectionName) { sync.save(); sync.load(); - actor.reply(Constants.PREFIX.append(text("The sync collection has been updated to %s.".formatted(collectionName), NamedTextColor.GREEN))); + actor.reply(Constants.PREFIX.append(text("The collection has been updated to %s.".formatted(collectionName), NamedTextColor.GREEN))); actor.reply(Constants.PREFIX.append(text("It will be applied when the next server starts up.", NamedTextColor.GREEN))); }