Jump to content
  • 0

I'm new to Skript, and cant figure out what's wrong here. Can anyone help me out?


SisterFarmer11

Question

command /Admin <player>:
    permission: moderator.command
    permission message: Sorry, you do not have permission to use that command.
    trigger:
        op player 
        /team join "Admin" player

 

The error message says the issue is /team join "Admin" player.  But I don't know what's wrong.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Just now, SisterFarmer11 said:

/team join "Admin" player

Try the below code

make console execute command "team join ""Admin"" %arg-1%"

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

  • 0
9 minutes ago, AgentGamerPro said:

Try the below code

make console execute command "team join ""Admin"" %arg-1%"

 

Wow! It worked! Thank you for the quick response! Do you think you could explain to me why it worked rather then mine? I just want to learn more about skript.

Link to comment
Share on other sites

  • 0
19 hours ago, SisterFarmer11 said:

Wait its not working anymore, its not having the player join the team.

If the server restarts, there has to be 1 player or entity or fake player in the team or else the team will delete itself.

21 hours ago, SisterFarmer11 said:

Wow! It worked! Thank you for the quick response! Do you think you could explain to me why it worked rather then mine? I just want to learn more about skript.

You were just typing the command and expecting it to work. Skript has no syntax for detecting commands, so instead you have to force the console to execute it instead. Go to skripthub.net for any syntax.

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...