Commandaliases fabric help

currently I have a json with just this:
schemaVersion: 1
commandMode: COMMAND_CUSTOM
command: killhostile
children:
- child: a
  type: argument
  argumentType: minecraft:word
  actions:
  - command: kill @e[type=#cdp:hostile]
    commandType: SERVER
    requireSuccess: false
    messageIfUnsuccessful: 'FAILED'
    messageIfSuccessful: 'WORKED!!!'

The command goes through, but i still get "failed" in the chat. Also, if I make the command kill @e[distance=..50,type=#cdp:hostile] it doesnt run at all. If i make a commandalias thats just a redirect of the command it also does not run. It seems that it is having trouble with selectors. Any help would be appreciated.
Was this page helpful?