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 Empty configuration section!

Discussion in 'Skript' started by omochi, May 22, 2020.

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

    omochi Member

    Joined:
    May 22, 2020
    Messages:
    14
    Likes Received:
    0
    Hello! I recently started skript and stopped at one place. I couldn't solve it because I didn't check it properly. What should I do?
    1. command /oni <text>:
      trigger:
      if arg is "s":
      if {oni} is set:
      set {oni} to location of player
      send "鬼の初期地点を変更しました。" to player
      stop
      else:
      set {oni} to location of player
      send "鬼の初期地点を保存しました。" to player
      stop
      if arg is "t":
      teleport player to {oni}
      send "テレポート!" to player
      stop
      else:
      send "初期地点どこ?^^" to player
      stop
      if arg is "y":
      loop all players:
      if block under loop-player is gold block:
      teleport player to {oni}

      erorr


      [14:14:31 INFO]: [Skript] Loading variables...
      [14:14:31 INFO]: [Skript] Loaded 1 variables in 0.0 seconds
      [14:14:31 WARN]: [Skript] Empty configuration section! You might want to indent one or more of the
      subsequent lines to make them belong to this section or remove the colon at the end of the line if
      you don't want this line to start a section. (yakata.sk, line 3: if arg is "s":')
      [14:14:31 WARN]: [Skript] Empty configuration section! You might want to indent one or more of the
      subsequent lines to make them belong to this section or remove the colon at the end of the line if
      you don't want this line to start a section. (yakata.sk, line 19: if arg is "y":')
      [14:14:31 WARN]: [Skript] Empty configuration section! You might want to indent one or more of the
      subsequent lines to make them belong to this section or remove the colon at the end of the line if
      you don't want this line to start a section. (yakata.sk, line 21: if block under loop-player is gol
      d block:')

      I would be happy if you could tell me where I made a mistake and how to fix it. Please also ask a question.
     
  2. Best Answer:
    Post #2 by Dave, May 22, 2020
  3. Dave

    Dave Active Member

    Joined:
    Jul 20, 2018
    Messages:
    228
    Likes Received:
    9
    You are not using tabs (4 spaces) in your code.

    Code (Text):
    1. command /oni [<text>]:
    2.     usage: /oni <s | t | y>
    3.     trigger:
    4.         if arg-1 is set:
    5.             if arg is "s":
    6.                 if {oni} is set:
    7.                     set {oni} to location of player
    8.                     send "鬼の初期地点を変更しました。" to player
    9.                 else:
    10.                     set {oni} to location of player
    11.                     send "鬼の初期地点を保存しました。" to player
    12.  
    13.             else if arg is "y":
    14.                 loop all players:
    15.                     if block under loop-player is gold block:
    16.                         teleport player to {oni}
    17.  
    18.             else if arg is "t":
    19.                 teleport player to {oni}
    20.                 send "テレポート!" to player
    21.             else:
    22.                 send "初期地点どこ?^^" to player
    23.         else:
    24.             send "&c正しい使い方:/ oni <s | t | y>"
     
  4. omochi

    omochi Member

    Joined:
    May 22, 2020
    Messages:
    14
    Likes Received:
    0
    Thanks you!
     
  5. Dave

    Dave Active Member

    Joined:
    Jul 20, 2018
    Messages:
    228
    Likes Received:
    9
    You're welcome! :emoji_grinning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...