Solved Skript can't teleport me to world i copied, any solution???

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

VojaFTW

Member
Jun 10, 2017
42
2
0
Hello, skript can't teleport me to world, here is my code:

code_language.skript:
command /hostevent:
    permission: cc.command.hostevent
    permission message: &cInvalid permission, sorry.
    trigger:
        if {cc.event.%player%} is not set:
            send "&0[&3&l%{ePrefix}%&0] &3%player%'s Event-1 successfully created. You will be sent to it shortly."
            send "&0[&3&l%{ePrefix}%&0] &3If you haven't been send in 20 seconds, type /mv tp %player%'s Event-1"
            copy dir "plugins/CamCraftCore/CCEvents/eventmap/map1" to "plugins/CamCraftCore/CCEvents/%player%'s Event-1/"
            unload world "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
            wait 2 ticks
            load world "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
            wait 20 seconds
            teleport player to spawn of "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
        else:
            send "&0[&3&l%{ePrefix}%&0] &3Your event is still being created or already exists. If you haven't been send in 20 seconds, type /mv tp %player%'s Event-1."

Also maybe he doesn't teleport me becouse spawn of that world is in air.

[doublepost=1500333177,1500326842][/doublepost]BUMP
 
Hello, skript can't teleport me to world, here is my code:

code_language.skript:
command /hostevent:
    permission: cc.command.hostevent
    permission message: &cInvalid permission, sorry.
    trigger:
        if {cc.event.%player%} is not set:
            send "&0[&3&l%{ePrefix}%&0] &3%player%'s Event-1 successfully created. You will be sent to it shortly."
            send "&0[&3&l%{ePrefix}%&0] &3If you haven't been send in 20 seconds, type /mv tp %player%'s Event-1"
            copy dir "plugins/CamCraftCore/CCEvents/eventmap/map1" to "plugins/CamCraftCore/CCEvents/%player%'s Event-1/"
            unload world "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
            wait 2 ticks
            load world "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
            wait 20 seconds
            teleport player to spawn of "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
        else:
            send "&0[&3&l%{ePrefix}%&0] &3Your event is still being created or already exists. If you haven't been send in 20 seconds, type /mv tp %player%'s Event-1."

Also maybe he doesn't teleport me becouse spawn of that world is in air.

[doublepost=1500333177,1500326842][/doublepost]BUMP

code_language.skript:
            teleport player to spawn of "plugins/CamCraftCore/CCEvents/%player%'s Event-1"

It's possible that Skript doesn't recognize "plugins/CamCraftCore/CCEvents/%player%'s Event-1" as the type world, however, it will probably not throw a parse error, since the syntax is correct (probably).

It seems like you're using Umbaska's load/unload world expression, which requires a string; while you're also using Skript's spawn expression, which requires a world. I would suggest instead of using Skript's spawn expression, use Skellett's teleport to world expression, which also uses a string as the world parameter.
 
code_language.skript:
            teleport player to spawn of "plugins/CamCraftCore/CCEvents/%player%'s Event-1"

It's possible that Skript doesn't recognize "plugins/CamCraftCore/CCEvents/%player%'s Event-1" as the type world, however, it will probably not throw a parse error, since the syntax is correct (probably).

It seems like you're using Umbaska's load/unload world expression, which requires a string; while you're also using Skript's spawn expression, which requires a world. I would suggest instead of using Skript's spawn expression, use Skellett's teleport to world expression, which also uses a string as the world parameter.

Thank you! Voja and I have been trying to fix this but I can't test it right now as it is really late.
 
code_language.skript:
            teleport player to spawn of "plugins/CamCraftCore/CCEvents/%player%'s Event-1"

It's possible that Skript doesn't recognize "plugins/CamCraftCore/CCEvents/%player%'s Event-1" as the type world, however, it will probably not throw a parse error, since the syntax is correct (probably).

It seems like you're using Umbaska's load/unload world expression, which requires a string; while you're also using Skript's spawn expression, which requires a world. I would suggest instead of using Skript's spawn expression, use Skellett's teleport to world expression, which also uses a string as the world parameter.

can you show me a example of skellet teleport

code_language.skript:
            skellet teleport player to "plugins/CamCraftCore/CCEvents/%player%'s Event-1" spawn

and how to remove fles after event is done using ex /closeevent command i tryed delete dir and delete folder but showing me a error
 
Status
Not open for further replies.