Cannot Teleport player to a location
TheFox580 opened this issue ยท 1 comments
Skript/Server Version
[19:28:06 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[19:28:06 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[19:28:06 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[19:28:06 INFO]: [Skript] Server Version: git-Paper-497 (MC: 1.20.4)
[19:28:06 INFO]: [Skript] Skript Version: 2.9.0 (skriptlang-github)
[19:28:06 INFO]: [Skript] Installed Skript Addons:
[19:28:06 INFO]: [Skript] - skript-placeholders v1.5.2 (https://github.com/APickledWalrus/skript-placeholders)
[19:28:06 INFO]: [Skript] - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[19:28:06 INFO]: [Skript] - Skellett v2.0.9 (https://forums.skunity.com/resources/skellett.24/)
[19:28:06 INFO]: [Skript] - SkBee v3.5.7 (https://github.com/ShaneBeee/SkBee)
[19:28:06 INFO]: [Skript] Installed dependencies:
[19:28:06 INFO]: [Skript] - Vault v1.7.3-b131
Bug Description
Whenever the .sk file gets (re)loaded with the possibility for a player to get teleported to a location, the server will stop working and crash
Expected Behavior
The file should reload without error and the server shouldn't crash
Steps to Reproduce
add a condition of why the player should be teleported
teleport the player to a location above them
if the z-coordinate of loop-player >= 980: if the z-coordinate of loop-player <= 1100: if the y-coordinate of loop-player < 150: teleport loop-player to location(x-coordinate of loop-player, 150, z-coordinate of loop-player, world of loop-player, yaw of loop-player, pitch of loop-player)
(I can't get it for format properly i'm sorry)
Errors or Screenshots
https://paste.gg/p/anonymous/7ed4d977d7b34665917c03e6466a44c3
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.
teleport loop-player to location(x-coordinate of loop-player, 150, z-coordinate of loop-player, world of loop-player, yaw of loop-player, pitch of loop-player)
this line is really really hard for the parser to understand. Your options are a) surround each argument with (): (x coordinate of loop-player), 150, ...
, or b) just set the y coordinate of the location alone:
set {_loc} to player's location
set y coord of {_loc} to 150
teleport player to {_loc}