Solved Empty Configuration Section

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

iFammYT

Member
Nov 6, 2022
13
1
3
Hi, Im trying to make a simple queue for a sumo skript im making. I recieved errors about empty configurations. What should i do?

command /sumo:
trigger:
if {Sumo::*} does not contain player:
add player to {Sumo::*}
send "&eYou have joined the &3Sumo &equeue" to player
else:
remove player from {Sumo::*}
send "&eYou have been removed from the &3Sumo &equeue"


The error:
[18:06:08 WARN]: 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. (sumoglory.sk, line 3: if {Sumo::*} does not contain player:')
[18:06:08 WARN]: 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. (sumoglory.sk, line 6: else remove player from {Sumo::*}:')
[18:06:08 ERROR]: can't understand this condition: 'else remove player from {Sumo::*}' (sumoglory.sk, line 6: else remove player from {Sumo::*}:')
[18:06:08 INFO]: [Skript] Encountered 1 error while reloading sumoglory.sk!

I would be happy if you could tell me where I made a mistake and how to fix it. Please also ask a question.
 
Sadly, I'm not able to see your indentation, so I can't see the errors (I would suggest using the code blocks or by surrounding your code in ([)CODE(]) and ([)/CODE(]) (remove the parentheses) ), but this might work as I don't have the rest of the skript:

Code:
command /sumo:
    trigger:
        if {Sumo::*} does not contain player:
            add player to {Sumo::*}
            send "&eYou have joined the &3Sumo &equeue" to player
        else:
            remove player from {Sumo::*}
            send "&eYou have been removed from the &3Sumo &equeue"
If you have any problems, reply or message me. Have a good day!
 
Status
Not open for further replies.