InteractiveChat icon indicating copy to clipboard operation
InteractiveChat copied to clipboard

CommandsToParse isn't working right

Open KamillPlayZ opened this issue 5 months ago • 4 comments

I have set it to an empty list, yet it still works with commands like /msg and /reply from EssentialsX.

  # A list of private message commands on your server
  # The plugin will attempt to parse placeholder inside these commands.
  # This list is in REGEX, so you can do some more advanced matches.
  CommandsToParse: []

The other issue is, when doing "/msg playername [inv]" it doesn't just share your inventory with the other player, but it also replaces your side of the message with the other player's inventory.

Image

KamillPlayZ avatar Jul 12 '25 15:07 KamillPlayZ

You need to also add all the command aliases such as /emsg etc.

LOOHP avatar Jul 12 '25 16:07 LOOHP

no, I want to disable this feature, because it is exploitable, but I cannot disable it

KamillPlayZ avatar Jul 12 '25 16:07 KamillPlayZ

Oh I misunderstood your question. When the message commands are not added to the CommandToParse IC Placeholders don't work properly.

LOOHP avatar Jul 12 '25 16:07 LOOHP

This /msg thing also works with the default ones:

  CommandsToParse:
    - "(?i)/emsg .*"
    - "(?i)/msg .*"
    - "(?i)/pm .*"
    - "(?i)/tell .*"
    - "(?i)/r .*"

The issue isn't that the placeholders work or don't, the issue is that for example on a Factions server, player 1 can type "/msg player2 [inv]", and it will display player 2's inventory for player 1, and that is a huge advantage - I don't think it is supposed to work like this either. (as in the image I've sent above)

KamillPlayZ avatar Jul 12 '25 16:07 KamillPlayZ