1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

error in console when teleporting

Discussion in 'Skript' started by MixedNoob, Mar 5, 2022.

Thread Status:
Not open for further replies.
  1. MixedNoob

    MixedNoob Member

    Joined:
    Apr 10, 2020
    Messages:
    10
    Likes Received:
    1
    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```


    [​IMG]
    Pastebin
    https://pastebin.com/Mhhnjaj4

    My plugins:
    upload_2022-3-5_10-4-18.png
     
    #1 MixedNoob, Mar 5, 2022
    Last edited: Mar 5, 2022
  2. Jacob105

    Jacob105 Member

    Joined:
    Aug 7, 2020
    Messages:
    48
    Likes Received:
    1
    Code (Text):
    1. [14:45:10 ERROR]: #!#! Current item: teleport (the command sender >> [email protected]7: 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.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...