@@ -348,7 +348,7 @@ private Exception noPermissionOrSyntax(
348348 final C sender ,
349349 final CommandNode <C > root
350350 ) {
351- final boolean convert = this .commandManager .settings ().get (ManagerSetting .CONVERT_NO_PERMISSION_TO_SYNTAX_EXCEPTION );
351+ final boolean convert = this .commandManager .settings ().get (ManagerSetting .HIDE_COMMAND_EXISTENCE );
352352 if (!convert ) {
353353 return new NoPermissionException (
354354 permissionResult ,
@@ -369,8 +369,8 @@ private Exception noPermissionOrSyntax(
369369 return new InvalidSyntaxException (
370370 this .commandManager .commandSyntaxFormatter ().apply (
371371 sender ,
372- parentChain .stream ().map (CommandNode ::component )
373- .filter (Objects ::nonNull ).collect (Collectors .toList ()),
372+ parentChain .stream ().map (CommandNode ::component )
373+ .filter (Objects ::nonNull ).collect (Collectors .toList ()),
374374 root
375375 ),
376376 sender , this .getComponentChain (root )
@@ -384,7 +384,7 @@ private Exception noPermissionOrSyntax(
384384 );
385385 }
386386
387- private boolean childPermitted (CommandNode <C > node , C sender ) {
387+ private boolean childPermitted (final CommandNode <C > node , final C sender ) {
388388 if (this .determinePermissionResult (sender , node ).allowed ()) {
389389 return true ;
390390 }
@@ -396,7 +396,7 @@ private boolean childPermitted(CommandNode<C> node, C sender) {
396396 return false ;
397397 }
398398
399- private @ Nullable List <CommandNode <C >> permittedParentChain (CommandNode <C > node , C sender ) {
399+ private @ Nullable List <CommandNode <C >> permittedParentChain (final CommandNode <C > node , final C sender ) {
400400 final @ Nullable CommandNode <C > parent = node .parent ();
401401 if (parent != null ) {
402402 if (this .determinePermissionResult (sender , parent ).allowed ()) {
0 commit comments