Recent Discussions
Mycommand isnt allowing character in $arg
Open in DiscordUnanswered
Chipping Sparrow posted this in #questions
16 messages
0 views
Chipping SparrowOP
Hello, i ran into an issue while adding logic to mycommand command that is supposed to add a custom suffix to players.
The issue is that when you wanna add colors like &number it doesn't allow and says that characters aren't allowed.
Is there any alternative to $arg in this case that will allow characters? Thanks in advance
adding the mycommand command logic:
customtitle:
command: /customtitle
type: RUN_CONSOLE
runcmd:
- '/lp user $player meta addsuffix 101 $arg1'
register: true
permission-required: true
permission-node: group.title
The issue is that when you wanna add colors like &number it doesn't allow and says that characters aren't allowed.
Is there any alternative to $arg in this case that will allow characters? Thanks in advance
adding the mycommand command logic:
customtitle:
command: /customtitle
type: RUN_CONSOLE
runcmd:
- '/lp user $player meta addsuffix 101 $arg1'
register: true
permission-required: true
permission-node: group.title
which plugin returned the error
“characters aren’t allowed” doesnt make sense; all glyphs including &1234abcdef are characters
ohh. its MyCommand. In its
config.yml
there’s a [regex](https://regex101.com) filter that includes &
by default@Phillapple ohh. its MyCommand. In its
config.yml
there’s a [regex](https://regex101.com) filter that includes &
by default Chipping SparrowOP
is there also a way to make other languages be allowed?
the server i am isnt english based and as much as the owner said it doesnt allow the language
ill come back to inform if it helped
(the server is on velocity thats why it says kicked from vanilla)
How can i disable this?
Chipping SparrowOP
also i ran into smth new when i found out it was on RUN_COMMAND instead of RUN_CONSOLE, its giving a new error
image.png
@Chipping Sparrow also i ran into smth new when i found out it was on RUN_COMMAND instead of RUN_CONSOLE, its giving a new error
Chipping SparrowOP
nvm it fixed itself somehow
Chipping SparrowOP
aight i found a way to fix all that
@Phillapple thanks for help
Loading...
Loading...