What is wrong with my skript?

  • 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.

ReZ

Member
Mar 11, 2023
1
0
1
17
Trying to figure out what is wrong with my skript.
on spawn:
if player's world is "world":
givebetaprefix(player)

function givebetaprefix(p: player):
run player cmd "lp user {_p} parent set beta-testers" as op
gives me the Cant understand this condition
 
I believe the problem you are having is found in this line: run player cmd "lp user {_p} parent set beta-testers" as op
The correct way to do this is: execute console command "lp user %{_p}% set beta-testers"

Make sure to indent your code as well :emoji_grinning:
 
Status
Not open for further replies.