Can you use Options in send ""?

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

notblueblob67

Member
Sep 13, 2019
40
1
0
Hi

In custom LuckPerms Skript (SLP), the config is described to be easy-to-use. So, I wanted to add the ability to use Options to create a Prefix Variable to display before every message.

Example:
Code:
options:
  prefix: &6[test]
command /test:
  trigger:
    send "{@prefix} &ethis is a test command"
I dont know if this will work, which is why I came here. All ik is that you display options "anywhere in a skript" by using {@option name}, as said here.

Anyone have any ideas, suggestions or fixes? Thanks
 
Code:
options:
  prefix: &6[test]
command /test:
  trigger:
    send "%{@prefix}% &ethis is a test command"
 
Hi

In custom LuckPerms Skript (SLP), the config is described to be easy-to-use. So, I wanted to add the ability to use Options to create a Prefix Variable to display before every message.

Example:
Code:
options:
  prefix: &6[test]
command /test:
  trigger:
    send "{@prefix} &ethis is a test command"
I dont know if this will work, which is why I came here. All ik is that you display options "anywhere in a skript" by using {@option name}, as said here.

Anyone have any ideas, suggestions or fixes? Thanks
Have you bothered to try it?

IF yes:
- Do you get any errors?

If no:
- It should work
 
Have you bothered to try it?

IF yes:
- Do you get any errors?

If no:
- It should work
I cant test, atm, will soon tho and get back to you.
[doublepost=1572285346,1572285294][/doublepost]
Code:
options:
  prefix: &6[test]
command /test:
  trigger:
    send "%{@prefix}% &ethis is a test command"
Have you tested this?

If this is an addon feature, I have Skript and skQuery
[doublepost=1572285419][/doublepost]
Have you bothered to try it?

IF yes:
- Do you get any errors?

If no:
- It should work
btw i have tested in the past but i cannot remember if it worked or not
 
Status
Not open for further replies.