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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Replace message in command.

Discussion in 'Skript' started by wCrazy_, Jun 6, 2021.

Thread Status:
Not open for further replies.
  1. wCrazy_

    wCrazy_ Member

    Joined:
    Jan 7, 2021
    Messages:
    15
    Likes Received:
    0
    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 (Text):
    1. command /test [<text>] [<player>] [<text>]:
    2.     trigger:
    3.         replace all "{prefix}" with yaml value "Messages.prefix" from "config" in command
    4.         if player has permission "test.player":
    5.             if arg-1 is not set:
    6.                 if arg-2 is not set:
    7.                     if arg-3 is not set:
    8.                         send colored yaml list "Messages.help" from "config"
    9.                         send yaml value "Messages.noperms" from "config"
    10.         else:
    11.             send yaml value "Messages.noperms" from "config"
    [​IMG]
    [​IMG]
     
    #1 wCrazy_, Jun 6, 2021
    Last edited: Jun 6, 2021
Thread Status:
Not open for further replies.

Share This Page

Loading...