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.

Lines of file

Discussion in 'Skript' started by couger44, Jun 1, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    I need help:

    How can i detect line(s) of a yml?

    Skript Version:
    2.2
    Addons:
    WildSkript, SkQuery, Skellet, SkRayFall, SharpSk, RandomSk
    Error on load:
    upload_2017-5-31_20-21-27.png

    Minecraft Version:

    1.8.8
     

    Attached Files:

  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Code (Skript):
    1.  
    2. on load:
    3.     if file "plugins/XelFile/config.yml" doesn't exists:
    4.         create file "plugins/XelFile/config.yml"
    5.     else:
    6.         stop
    7.        
    8. on join:
    9.     if "plugins/XelFile/config.yml" contains "%%new line%%":
    10.         set tab header to "%yml's text%" and footer to "%yml's text%" for event-player
    11.  
    I tested with
    Code (Skript):
    1. set tab header to "%yml's text%" and footer to "%yml's text%" for player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...