how to tp

  • 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.
You can set locations using set {variable} to player's location

Then you can teleport a player to said location using teleport player to {variable}

It works cross-world.
 
i found

code_language.skript:
teleport player to world "test"

but...

code_language.skript:
[18:23:43 ERROR]: #!#!
[18:23:43 ERROR]: #!#! [Skript] Severe Error:
[18:23:43 ERROR]: #!#!
[18:23:43 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[18:23:43 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[18:23:43 ERROR]: #!#! and check whether this error has already been reported.
[18:23:43 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[18:23:43 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[18:23:43 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[18:23:43 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[18:23:43 ERROR]: #!#!
[18:23:43 ERROR]: #!#! Stack trace:
[18:23:43 ERROR]: #!#! java.lang.NullPointerException
[18:23:43 ERROR]: #!#!     at com.gmail.thelimeglass.Effects.EffPlayerTeleportWorldSpawn.execute(EffPlayerTeleportWorldSpawn.java:37)
[18:23:43 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[18:23:43 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[18:23:43 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[18:23:43 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[18:23:43 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[18:23:43 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[18:23:43 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
[18:23:43 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)
[18:23:43 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[18:23:43 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[18:23:43 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[18:23:43 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[18:23:43 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[18:23:43 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[18:23:43 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[18:23:43 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[18:23:43 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[18:23:43 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[18:23:43 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[18:23:43 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[18:23:43 ERROR]: #!#!
[18:23:43 ERROR]: #!#! Version Information:
[18:23:43 ERROR]: #!#!   Skript: 2.2-dev25
[18:23:43 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[18:23:43 ERROR]: #!#!   Minecraft: 1.8.8
[18:23:43 ERROR]: #!#!   Java: 1.8.0_144 (Java HotSpot(TM) 64-Bit Server VM 25.144-b01)
[18:23:43 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[18:23:43 ERROR]: #!#!
[18:23:43 ERROR]: #!#! Running CraftBukkit: false
[18:23:43 ERROR]: #!#!
[18:23:43 ERROR]: #!#! Current node: null
[18:23:43 ERROR]: #!#! Current item: teleport %players% to [world] spawn of [world] %string%
[18:23:43 ERROR]: #!#!
[18:23:43 ERROR]: #!#! Thread: Server thread
[18:23:43 ERROR]: #!#!
[18:23:43 ERROR]: #!#! End of Error.
[18:23:43 ERROR]: #!#!
 
I believe teleport to world is from Skellet, and it may not work with whatever version you have of that addon alongside your mc and skript versions.
 
but this is a new world
and i cant go into the world to set playerslocation
Then you should have said that earlier...
code_language.skript:
set {_loc} to the location at 0, 0, 0 of the world "world's name"
teleport player to {_loc}
May not work if bensku hasn't fixed it yet.
 
Can't understand this expression: ('the location at 0', '0' and '0 of the world "test"')
If Bensku has fixed it, it likely won't be on dev 25. And using higher versions will likely cause other parts of your skripts/addons to stop working. Do you use multiverse? Your world tp problem would be easily solved if you had the /mv tp command
 
If Bensku has fixed it, it likely won't be on dev 25. And using higher versions will likely cause other parts of your skripts/addons to stop working. Do you use multiverse? Your world tp problem would be easily solved if you had the /mv tp command
It hasn't been broken for a while, but the location function is preferred.
code_language.skript:
teleport player to spawn of ("world" parsed as a world)
Vanilla skipt
 
Status
Not open for further replies.