Skip to content

Commit 6e74b4b

Browse files
committed
refactor: /sjm sync -> /sjm collection
1 parent a4e3e4d commit 6e74b4b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/cc/happyareabean/sjm/commands/SJMCommand.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ public void regenerate(BukkitCommandActor actor) {
134134
.append(text(fileName, NamedTextColor.GRAY)));
135135
}
136136

137-
@Subcommand({"sync create"})
138-
@Description("Create a sync collection with current join message")
137+
@Subcommand({"collection create"})
138+
@Description("Create a collection with current join message")
139139
public void create(BukkitCommandActor actor, String collectionName) {
140140
actor.reply(Constants.PREFIX.append(text("Creating collection %s...".formatted(collectionName), NamedTextColor.YELLOW)));
141141

@@ -153,8 +153,8 @@ public void create(BukkitCommandActor actor, String collectionName) {
153153
});
154154
}
155155

156-
@Subcommand({"sync remove"})
157-
@Description("Remove a sync collection")
156+
@Subcommand({"collection remove"})
157+
@Description("Remove a collection")
158158
public void remove(BukkitCommandActor actor, String collectionName) {
159159
actor.reply(Constants.PREFIX.append(text("Removing collection %s...".formatted(collectionName), NamedTextColor.YELLOW)));
160160

@@ -179,16 +179,16 @@ public void remove(BukkitCommandActor actor, String collectionName) {
179179
});
180180
}
181181

182-
@Subcommand({"sync set"})
183-
@Description("Set sync collection")
182+
@Subcommand({"collection set"})
183+
@Description("Set collection target for sync on startup")
184184
public void set(BukkitCommandActor actor, String collectionName) {
185185

186186
SJMSync sync = SimpleJoinMessage.getInstance().getSyncConfig();
187187
sync.setCollectionName(collectionName);
188188
sync.save();
189189
sync.load();
190190

191-
actor.reply(Constants.PREFIX.append(text("The sync collection has been updated to %s.".formatted(collectionName), NamedTextColor.GREEN)));
191+
actor.reply(Constants.PREFIX.append(text("The collection has been updated to %s.".formatted(collectionName), NamedTextColor.GREEN)));
192192
actor.reply(Constants.PREFIX.append(text("It will be applied when the next server starts up.", NamedTextColor.GREEN)));
193193
}
194194

0 commit comments

Comments
 (0)