commands from another command not working 1.16.1 #212


Closed
  • voigtman created this issue Jul 6, 2020

    Hey, Ivan, thanks again for the hard work in updating mycommand to the latest MC!

    In the example below, when player issues Command_1 (/help) it should run Command_2  and Command_ 3 however instead the player is told 
    "This command can be performed only from another command"
    In my prior install this worked flawlessly. currently a workaround is to add yet another layer to the command structure which turns everything into a hot mess. 

    The trouble I have is not only with the command not being issued I also am not fond of the fact that non-privileged players are seeing the error "This command can be performed only from another command", this should only be for admin or console, in my opinion. 

    EXAMPLE

    'Command_3':
      command: /thx
      type: TEXT
      execute_mode: FROM_ANOTHER_COMMAND
      text:
      - '&6Thanks for using help! here's some cake.'
      permissions-required: true
      permission-node: mycmd.lvl1
     
     'Command_2':
      command: /helpcookie
      type: RUN_AS_OPERATOR
      execute_mode: FROM_ANOTHER_COMMAND
      runcmd:
      - /mymenu open help
      - $delay$
      - /give $player cake 1
      - /thx
      delaytimer: 15
      permission-required: true
      permission-node: mycmd.lvl1
    
    'Command_1':
      command: /help
      type: RUN_COMMAND
      runcmd:
      - /helpcookie
      register: true
      permission-required: true
      permission-node: mycmd.lvl1

     

     

     

  • voigtman closed issue Jul 11, 2020
  • voigtman posted a comment Jul 11, 2020

    Report was premature. Further testing required... My appologies


To post a comment, please login or register a new account.