Solved script issue

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

Michele

Member
Jul 6, 2019
10
0
1
This is my script:

Command /privateworld:
trigger:
send "&4==================PrivateWorlds================"
send "&aThis server is running PrivateWorlds"
send "&eVersion: 0.1"
send "&1Build: 1-(Beta)"
send "&3Made by: buccimichele5"
send "&4==============================================="
Command /privateworld dependencies:
trigger:
send "&4==================PrivateWorlds================"
send "&aDependencies:"
send "&eSkript:"
send "&1"
send "&3Made by: buccimichele5"
send "&4==============================================="
Command /privateworld create:
permission: pw.create
trigger:
if {pworld.%player%} is 0:
send "&4Creating your world..."
make console execute command "/mv create %player% NORMAL"
send "&4Your PrivateWorld has been created!"
send "Join it by typing: /pworld join"
set {pworld.%player%} to 1:
if {pworld.%player%} is 1:
send "You alredy have a private world!"
send "Join it by typing: /pworld join"
Command /privateworld join:
permission: pw.joinmy
trigger:
if {pworld.%player%} is 0:
send "&4You dont have a world yet! Create it by typing command: /pworld create"
else:
send "&4Sending you to your private world..."
make console execute command "/mvtp %player% %player%"
send "&4Sent to your private world!"
Command /privateworld panel:
permission: pw.panelmy
trigger:
if player is in the world "%player%"
Command /privateworld delete:
permission: pw.delete
trigger:
if {pworld.%player%} is 0:
send "&4You don't have a world!"
else:
send "Deleting your world!"
send "This action cannot be reverted!"
make console execute command "/mv delete %player%"
wait a tick
make console execute command "/mv confirm"
send "World deleted!"
Command /privateworld unload:
permission: pw.unload
trigger:
if {pworld.%player%} is 0:
send "&4You don't have a world!"
else:
send "Unloading your world!"
make console execute command "/mv unload %player%"
send "Type /pworld load to load your world again!"
Command /privateworld load:
permission: pw.load
trigger:
if {pworld.%player%} is 0:
send "&4You don't have a world!"
else:
send "Loading your world!"
make console execute command "/mv load %player%"
send "Type /pworld unload to unload your world!"


This is the parser results:
Line 25: 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. (line 29: set {pworld.%player%} to 1:') (When a trigger, event or function has no code inside of it, Skript will warn you that there is nothing there. ) Apply a SmartFix

Line 25: Can't understand this condition: 'set {pworld.%player%} to 1' (script.sk, line 25: set {pworld.%player%} to 1:')

Line 42: Can't understand this condition/effect: if player is in the world "%player%" (line 51: if player is in the world "%player%"') (The Parser doesn't support every syntax element.)

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk


Can you please guys help me to fix it? I dont know how to do it. It is a script that allows the player to do a command once that creates a multiverse world and he can tp in it
 
Last edited:
Its nearly impossible to help you with this.
The error states you have an indentation issue, but you didn't bother to put your code in a code block, so we cant even see when/where you have indented your code.

Also, you have several of the same commands.
Don't register the same command more than once, just use one command, with command arguments, and check the arguments within the trigger.

I recommend reading over some basic Skript tutorials, especially the one on how to make basic commands
https://skripthub.net/tutorials/10
 
Its nearly impossible to help you with this.
The error states you have an indentation issue, but you didn't bother to put your code in a code block, so we can't even see when/where you have indented your code.

Also, you have several of the same commands.
Don't register the same command more than once, just use one command, with command arguments, and check the arguments within the trigger.

I recommend reading over some basic Skript tutorials, especially the one on how to make basic commands
https://skripthub.net/tutorials/10

I don't understand exactly what do you mean with the code block, but I'll try to make with arguments
 
Code block example:
code_language.skript:
command /test:
    trigger:
        give player a diamond sword named "BOB"

Screen Shot 2019-08-27 at 3.20.16 PM.png
 
This is my script:

Command /privateworld:
trigger:
send "&4==================PrivateWorlds================"
send "&aThis server is running PrivateWorlds"
send "&eVersion: 0.1"
send "&1Build: 1-(Beta)"
send "&3Made by: buccimichele5"
send "&4==============================================="
Command /privateworld dependencies:
trigger:
send "&4==================PrivateWorlds================"
send "&aDependencies:"
send "&eSkript:"
send "&1"
send "&3Made by: buccimichele5"
send "&4==============================================="
Command /privateworld create:
permission: pw.create
trigger:

send "&4==================PrivateWorlds================"
send "&aDependencies:"
send "&eSkript:"
send "&1"
send "&3Made by: buccimichele5"
send "&4==============================================="
Command /privateworld join:
permission: pw.joinmy
trigger:
if {pworld.%player%} is 0:
send "&4You dont have a world yet! Create it by typing command: /pworld create"
else:
send "&4Sending you to your private world..."
make console execute command "/mvtp %player% %player%"
send "&4Sent to your private world!"
Command /privateworld panel:
permission: pw.panelmy
trigger:
if player is in the world "%player%"
Command /privateworld delete:
permission: pw.delete
trigger:
if {pworld.%player%} is 0:
send "&4You don't have a world!"
else:
send "Deleting your world!"
send "This action cannot be reverted!"
make console execute command "/mv delete %player%"
wait a tick
make console execute command "/mv confirm"
send "World deleted!"
Command /privateworld unload:
permission: pw.unload
trigger:
if {pworld.%player%} is 0:
send "&4You don't have a world!"
else:
send "Unloading your world!"
make console execute command "/mv unload %player%"
send "Type /pworld load to load your world again!"
Command /privateworld load:
permission: pw.load
trigger:
if {pworld.%player%} is 0:
send "&4You don't have a world!"
else:
send "Loading your world!"
make console execute command "/mv load %player%"
send "Type /pworld unload to unload your world!"


This is the parser results:
Line 25: 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. (line 29: set {pworld.%player%} to 1:') (When a trigger, event or function has no code inside of it, Skript will warn you that there is nothing there. ) Apply a SmartFix

Line 25: Can't understand this condition: 'set {pworld.%player%} to 1' (script.sk, line 25: set {pworld.%player%} to 1:')

Line 42: Can't understand this condition/effect: if player is in the world "%player%" (line 51: if player is in the world "%player%"') (The Parser doesn't support every syntax element.)

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk

Line undefined: A command with the name /privateworld is already defined in script.sk


Can you please guys help me to fix it? I dont know how to do it. It is a script that allows the player to do a command once that creates a multiverse world and he can tp in it
like shane bee said try to read a little but mat be I can set a example for you to get it
Code:
command /privateworld [<text>]: #<text> if like the next argument need to be a text like "/privateworld hey" for example
    trigger:#now [] this means that the text is optional I like to do it like this always
        if arg 1 is not set:#This means if the player just execute "/privateworld"
            message "&4==================PrivateWorlds================"
            message "&aThis server is running PrivateWorlds"
            message "&eVersion: 0.1"
            message "&1Build: 1-(Beta)"
            message "&3Made by: buccimichele5"
            message "&4==============================================="   
        else: #This will happen if the player add any any argument
            if arg 1 is "dependencies": #This will happen if the player execute "/privateworld dependencies"
                message "&4==================PrivateWorlds================"
                message "&aDependencies:"
                message "&eSkript:"
                message "&1"
                message "&3Made by: buccimichele5"
                message "&4==============================================="           
            else if arg 1 is "create": #This will happen if the player execute "/privateworld create"
                if player has permmision "privateworld.create":#like this say if the player has permmision
                    #do the code here
                else:#if the player does not have permmision other code here
                    message "&cSorry you don have permmision ""privateworld.create"""
            else if arg 1 is "something": #I hope you get the point just add arguments like this
                #do some code
                message "something"
            else if arg 1 is "help":#You can add a help message
                message "help message"
            else: #if any of the other else if execute the code that will execute is this one
                message "incorrect usagge do ""/privateworld help"" to get help."
[doublepost=1566945386,1566945331][/doublepost]
Code block example:
code_language.skript:
command /test:
    trigger:
        give player a diamond sword named "BOB"

View attachment 3730
how do I add link with a letter ? like wend people do click here and the here is a link
 
Status
Not open for further replies.