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.

Creating configuration file for skripts

Discussion in 'Skript' started by KroterPvP, May 3, 2017.

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

    KroterPvP Active Member

    Joined:
    Apr 10, 2017
    Messages:
    178
    Likes Received:
    7
    I need somebody who wants to help me with a small tutorial about creating a "file.yml" to set messages and options there. Can you send me a link to a tutorial or just create one for me? Including all the posible yaml functions.

    I know this:
    Code (Skript):
    1. on load:
    2.     if file "plugins/SuperEconomy/Config.yml" doesn't exists:
    3.         create file "plugins/SuperEconomy/Config.yml"
    4.         wf "no-permission: &cYou are not allowed to do that!" to "plugins/SuperEconomy/Config.yml"
    5.     set {no-permission} to value "no-permission" get of "plugins/SuperEconomy/Config.yml"
    The config is created like this:
    Code (Skript):
    1. no-permission: §cYou are not allowed to do that!
    1. I don't want color codes to be like "§". Is there any way to make color codes run with "&"?

    2. I don't know how to create a config and set values to true or false to activate or deactivate some features of my skripts.

    I need help with this too:
    Code (Skript):
    1. on load:
    2.     if file "plugins/SuperEconomy/Config.yml" doesn't exists:
    3.         create file "plugins/SuperEconomy/Config.yml"
    4.         wf "balance: "&a%arg 3% &7has &a%{balance.%arg 3%}% &7coins!" to plugins/SuperEconomy/Config.yml"
    5.     set {balance} to value "balance" get of "plugins/SuperEconomy/Config.yml"
    6. command /balance:
    7.     trigger:
    8.         send {balance}
    3. The message is not displayer well. The variables aren't replaced.
     
    #1 KroterPvP, May 3, 2017
    Last edited: May 3, 2017
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Thanks
    --- Double Post Merged, May 3, 2017, Original Post Date: May 3, 2017 ---
    Can anybody answer my questions?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...