@@ -134,8 +134,8 @@ public void regenerate(BukkitCommandActor actor) {
134
134
.append (text (fileName , NamedTextColor .GRAY )));
135
135
}
136
136
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" )
139
139
public void create (BukkitCommandActor actor , String collectionName ) {
140
140
actor .reply (Constants .PREFIX .append (text ("Creating collection %s..." .formatted (collectionName ), NamedTextColor .YELLOW )));
141
141
@@ -153,8 +153,8 @@ public void create(BukkitCommandActor actor, String collectionName) {
153
153
});
154
154
}
155
155
156
- @ Subcommand ({"sync remove" })
157
- @ Description ("Remove a sync collection" )
156
+ @ Subcommand ({"collection remove" })
157
+ @ Description ("Remove a collection" )
158
158
public void remove (BukkitCommandActor actor , String collectionName ) {
159
159
actor .reply (Constants .PREFIX .append (text ("Removing collection %s..." .formatted (collectionName ), NamedTextColor .YELLOW )));
160
160
@@ -179,16 +179,16 @@ public void remove(BukkitCommandActor actor, String collectionName) {
179
179
});
180
180
}
181
181
182
- @ Subcommand ({"sync set" })
183
- @ Description ("Set sync collection " )
182
+ @ Subcommand ({"collection set" })
183
+ @ Description ("Set collection target for sync on startup " )
184
184
public void set (BukkitCommandActor actor , String collectionName ) {
185
185
186
186
SJMSync sync = SimpleJoinMessage .getInstance ().getSyncConfig ();
187
187
sync .setCollectionName (collectionName );
188
188
sync .save ();
189
189
sync .load ();
190
190
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 )));
192
192
actor .reply (Constants .PREFIX .append (text ("It will be applied when the next server starts up." , NamedTextColor .GREEN )));
193
193
}
194
194
0 commit comments