Square brackets in command arguments #309


Open
  • shinare_i created this issue Sep 21, 2021

    There does not seem to be any way to use square brackets in commands.
    For example, if I made command:
    /mysummon
    runcmd: /summon $multiargs
    It would not be possible to include {Equipment:[]} in the command via arguments. Same with any other NBT lists.
    An obvious solution to this would be to add the symbols to REGEX, but this does not seem to work either.
    regex_pattern : "^[-a-zA-Z0-9&._ /'{}()]+" works. But if I make it "^[-a-zA-Z0-9&._ /'{}()\[\]]+" instead, the plugin will fail to load the file, stating "found unknown escape character [(91)"


    Would it be possible to add this option if it hasn't already been done in some undocumented way?


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