error in console when teleporting

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

MixedNoob

Member
Apr 10, 2020
10
1
3
https://pastebin.com/Mhhnjaj4 why do i get this error when the world is loaded

```teleport {_p} to ReturnSpawnpoint("Blue", {Map})```
```
function ReturnSpawnpoint(team: text, map: text) :: location:
set {location} to yaml value "%{_map}%.Red-spawnpoint" from "Map-%{_map}%.yml"
#broadcast "dumpling %{_location}%"
return {location}```
```
testworld:
y-level: 3
void: 3
world: ul_Field
file: ul_Field
Red-spawnpoint: !location
world: ul_Field_clone
x: 757.469627965336393
y: 173.5
z: 1116.732699076003849
yaw: 144.4515380859375
pitch: 12.553755760192871
Blue-spawnpoint: !location
world: ul_Field_clone
x: 758.469627965336393
y: 173.5
z: 1001.732699076003849
yaw: 144.4515380859375
pitch: 12.553755760192871
enchantment-table: !location
world: ul_Lobby
x: -5.469627965336393
y: 24.5
z: -2.732699076003849
yaw: 144.4515380859375
pitch: 12.553755760192871```


unknown.png

Pastebin
https://pastebin.com/Mhhnjaj4

My plugins:
upload_2022-3-5_10-4-18.png
 
Last edited:
Code:
[14:45:10 ERROR]: #!#! Current item: teleport (the command sender >> ch.njol.skript.classes.data.DefaultConverters$3@1e73bcf7: commandsender -> player) to [[direction:at]] ReturnSpawnpoint("Red", {Map} (as java.lang.String))
That's your bugged code, idfk what it means, but that might help.
 
Status
Not open for further replies.