@@ -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