Block commands on Mycommand #257


  • Waiting
Open
  • BLiTz_BaNe created this issue Mar 11, 2021

    Hi, I created a command which disables a command ingame but not on console. Here is the code:

    console_execute_only:
    command: /op
    type: RUN_CONSOLE
    runcmd:
    - /op
    permission-required: false
    execute_mode: CONSOLE_ONLY
    register: true
    error-message: "&fUnknown command. Type /help for help."

    However, it doesn't work. Other commands work but not on this command. I also added this option to MyCommand Bungee but still don't work. Any resolution for this?

  • BLiTz_BaNe added a tag Waiting Mar 11, 2021
  • realcommandandorder posted a comment Apr 9, 2021

    maybe you can add a permission for it

  • BLiTz_BaNe posted a comment May 12, 2021

    That's the problem. If a player already has the /op or they are already the Operator, even if you add permission to it, they will still be able to do it. Even if I add an option to set the permission to false, they can still do it. 


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