Solved Replace message in command.

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

wCrazy_

Member
Jan 7, 2021
15
0
1
24
Server version: 1.8.8-PaperSpigot
Skript version: 2.1.2

Problem is in "replace all "{prefix}" with yaml value "Messages.prefix" from "config" in command"

Code:
command /test [<text>] [<player>] [<text>]:
    trigger:
        replace all "{prefix}" with yaml value "Messages.prefix" from "config" in command
        if player has permission "test.player":
            if arg-1 is not set:
                if arg-2 is not set:
                    if arg-3 is not set:
                        send colored yaml list "Messages.help" from "config"
                        send yaml value "Messages.noperms" from "config"
        else:
            send yaml value "Messages.noperms" from "config"
SFnMU7z.png

SFnMU7z
 
Last edited:
Status
Not open for further replies.