Skip to content

Commit 7156228

Browse files
committed
Fix command registration
1 parent ecc3048 commit 7156228

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/main/java/fr/xephi/authme/command/CommandInitializer.java

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,17 @@ public static Set<CommandDescription> buildCommands() {
269269
.executableCommand(new VersionCommand())
270270
.build();
271271

272+
CommandDescription.builder()
273+
.parent(AUTHME_BASE)
274+
.labels("converter", "convert", "conv")
275+
.description("Converter Command")
276+
.detailedDescription("Converter command for AuthMeReloaded.")
277+
.withArgument("job", "Conversion job: xauth / crazylogin / rakamak / " +
278+
"royalauth / vauth / sqlitetosql", false)
279+
.permissions(OP_ONLY, AdminPermission.CONVERTER)
280+
.executableCommand(new ConverterCommand())
281+
.build();
282+
272283
// Register the base login command
273284
final CommandDescription LOGIN_BASE = CommandDescription.builder()
274285
.parent(null)
@@ -381,18 +392,6 @@ public static Set<CommandDescription> buildCommands() {
381392
.executableCommand(new CaptchaCommand())
382393
.build();
383394

384-
// Register the base converter command
385-
CommandDescription CONVERTER_BASE = CommandDescription.builder()
386-
.parent(AUTHME_BASE)
387-
.labels("converter", "convert", "conv")
388-
.description("Converter Command")
389-
.detailedDescription("Converter command for AuthMeReloaded.")
390-
.withArgument("job", "Conversion job: xauth / crazylogin / rakamak / " +
391-
"royalauth / vauth / sqlitetosql", false)
392-
.permissions(OP_ONLY, AdminPermission.CONVERTER)
393-
.executableCommand(new ConverterCommand())
394-
.build();
395-
396395
Set<CommandDescription> baseCommands = ImmutableSet.of(
397396
AUTHME_BASE,
398397
LOGIN_BASE,
@@ -401,8 +400,7 @@ public static Set<CommandDescription> buildCommands() {
401400
UNREGISTER_BASE,
402401
CHANGE_PASSWORD_BASE,
403402
EMAIL_BASE,
404-
CAPTCHA_BASE,
405-
CONVERTER_BASE);
403+
CAPTCHA_BASE);
406404

407405
setHelpOnAllBases(baseCommands);
408406
return baseCommands;

0 commit comments

Comments
 (0)