Jump to content

Just wondering if you could add a arg in a excute console command


pete_parker

Recommended Posts

Idk if i worded it right in the title , kinda new to skript and wondering if i could do something like
 

command /lol <text>
	trigger:
  		excute console commmand " say <text> " 
  		

No idea how how an argument would land in a console command so just asking to know if its a thing or if i need another plugin 

Edited by pete_parker
missspelling
Link to comment
Share on other sites

  • pete_parker changed the title to Just wondering if you could add a arg in a excute console command
1 hour ago, pete_parker said:

Idk if i worded it right in the title , kinda new to skript and wondering if i could do something like
 

command /lol <text>
	trigger:
  		excute console commmand " say <text> " 
  		

No idea how how an argument would land in a console command so just asking to know if its a thing or if i need another plugin 

Wait what do you want to achieve here? Just send a message to a player?

command /test [<text>]:
 trigger:
  send "%arg 1%"
  send "%arg 1%" to console
  send "%arg 1%" to all players
  make console execute command "/%arg 1%"

Here are some examples

Edited by StarBunnie

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

3 hours ago, StarBunnie said:

Wait what do you want to achieve here? Just send a message to a player?

command /test [<text>]:
 trigger:
  send "%arg 1%"
  send "%arg 1%" to console
  send "%arg 1%" to all players
  make console execute command "/%arg 1%"

Here are some examples

nah i was just gonna add a /prefix command , 
something like 

command /prefix [<text>]
	trigger:
  		excute console commmand "/lp user %player% meta setprefix %arg1%"
  		

 

Edited by pete_parker
Link to comment
Share on other sites

9 hours ago, pete_parker said:

nah i was just gonna add a /prefix command , 
something like 

command /prefix [<text>]
	trigger:
  		excute console commmand "/lp user %player% meta setprefix %arg1%"
  		

 

Ah alright yes that works fine

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

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