Zrips / CMI

111 stars 98 forks source link

When $2$3 etc. is next to each other, it breaks the $3 replacement #8820

Open bobhenl opened 1 month ago

bobhenl commented 1 month ago

Description of Issue

Hello, there's issue that when you use the arguments next to each other, it breaks the alias.

I have easy sample for you (I use the more complicated commands, but I created this):

  brokentest2:
    Cmds:
    - msg $1 $2$3 $4 $5
    Perm: true
    Tab: false
  brokentest1:
    Cmds:
    - msg Zrips test
    - brokentest2 Zrips &c %cmi_user_display_name% %cmi_user_display_name% %cmi_user_display_name%
    Perm: true
    Tab: false

image That's how the output looks, as you see, the $2$3 causes that $3 isn't replaced, when you add there space, it works!

btw the first cmd has to be there too from some reason, I don't know why, but otherwise it doesn't work (this sample).

I wanted for example put the color as one argument and then the word, like "&a test", but when I do $2$3 it won't work as you see

Version Information

[01:16:34 INFO]: CMI: 9.7.3.2 Unknown  SqLite
[01:16:34 INFO]: CMILib: 1.4.7.16 
[01:16:34 INFO]: Server: Purpur(2165) 1.20.4-R0.1-SNAPSHOT-
[01:16:34 INFO]: CMI economy: Enabled Vault: 1.7.3-CMI CMI Chat: Disabled 
[01:16:34 INFO]: Modules -> 52 enabled 12 disabled: disabledEnchants, customMessages, mirror, chatBubble, tablist, ranks, firstJoinMessages, playerCombat, votifier, sitAnimation, namePlates, playerChatTag
[01:16:34 INFO]: --------------------------------------------------

Errors

No response

Relevant Config Sections

No response

Relevant Plugins

No response

Agreements