Jump to content

Multiple Command in 1 skript?


_Clout0son

Recommended Posts

Hi ive been trying to make a /apply command for my server and idk how to add a 2nd command 1 for regular staff and 1 for Builder
So far i have this 

command /apply:
    trigger:
        send formatted "&dBoxxboxx &8» <link:https://bit.ly/3frUeDW>&dClick here to apply for Staff.<reset>"
    trigger:
        send formatted "&dBoxxboxx &8» <link:https://bit.ly/3wnjan3>&dClick here to apply for Builder.<reset>"

 


Edited by BomberBoy213
Link to comment
Share on other sites

23 minutes ago, BomberBoy213 said:

Basically i wanna make it a /apply Staff and /apply Builder and it sends those links

Add arguments to the command. Do you know how arguments work? Take a look at this skript command tutorial if you don't know how - https://skripthub.net/tutorials/10

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

command /apply:
    trigger:
        send formatted "&dBoxxboxx &8» <link:https://bit.ly/3frUeDW>&dClick here to apply for Staff.<reset>"
        send formatted "&dBoxxboxx &8» <link:https://bit.ly/3wnjan3>&dClick here to apply for Builder.<reset>"

Link to comment
Share on other sites

56 minutes ago, Thedukc said:

command /apply:
    trigger:
        send formatted "&dBoxxboxx &8» <link:https://bit.ly/3frUeDW>&dClick here to apply for Staff.<reset>"
        send formatted "&dBoxxboxx &8» <link:https://bit.ly/3wnjan3>&dClick here to apply for Builder.<reset>"

That's not what they wanted

23 hours ago, _Clout0son said:

Basically i wanna make it a /apply Staff and /apply Builder and it sends those links

They said they wanted arguments like this. And you shouldn't spoon feed someone who is asking for help or they will never learn.

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

you need to try and set it like this:

command /apply:
    trigger:
	if arg-1 is Staff:
		send formatted "&dBoxxboxx &8» <link:https://bit.ly/3frUeDW>&dClick here to apply for Staff.<reset>"
       	if arg-1 is Builder:
		send formatted "&dBoxxboxx &8» <link:https://bit.ly/3wnjan3>&dClick here to apply for Builder.<reset>"

 

Edited by The_Pr007
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...