Solved Having trouble with a command

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ZsCortzones

Member
Feb 18, 2021
32
1
8
26
I am currently trying to make a skript that will allow players with a certain rank to change their prefix. All was working well until i got this strange error that i can't fix.

Code:
command /color <text>:
permission: rank.color
trigger:
if arg-1 is "aqua":
execute console command: "/lp user %player% meta setprefix "&b[GOD] ""

Error:
upload_2021-2-24_15-40-49.png
\

I have tried changing "execute console command" to "console command" and things like that, but nothing is working. I have used the "console command" event in the past and it has always worked fine other than now.
 
I am currently trying to make a skript that will allow players with a certain rank to change their prefix. All was working well until i got this strange error that i can't fix.

Code:
command /color <text>:
permission: rank.color
trigger:
if arg-1 is "aqua":
execute console command: "/lp user %player% meta setprefix "&b[GOD] ""

Error:
View attachment 5800\

I have tried changing "execute console command" to "console command" and things like that, but nothing is working. I have used the "console command" event in the past and it has always worked fine other than now.
You have to add one quote more
code_language.skript:
execute console command "/lp user %player% meta setprefix ""&b[GOD] """

Or try this instead:
code_language.skript:
execute console command "/lp user %player% meta setprefix '&b[GOD] '"
I dont remember if this still working, but it should.
 
Status
Not open for further replies.