Skript Version : Skript 2.5.3
Minecraft Version: 1.15.2
OK, I've been trying to build an FPS server for years, and I've realized that there's a problem in the process.
If you change the pitch/yaw through the teleport function provided in Minecraft, it will break off every time you shoot a gun.
I saw a very interesting that writing on the forum, but an error occurred and I couldn't operate it(Plugin version also matched the post context)
"""
[02:45:48] [Server thread/WARN]: net.minecraft.network.protocol.game.PacketPlayOutPosition refers to a non-existent class. (test.sk, line 2: net.minecraft.network.protocol.game.PacketPlayOutPosition')
[02:45:48] [Server thread/ERROR]: The function 'PacketPlayOutPosition' does not exist. (test.sk, line 8: return new PacketPlayOutPosition({_loc}.getX(),{_loc}.getY(),{_loc}.getZ(),{_loc}.getYaw(),{_loc}.getYaw(),{_set},0,true)')
[02:45:49] [Server thread/ERROR]: Can't understand this expression: 'Set.of(PacketPlayOutPosition.EnumPlayerTeleportFlags.a, PacketPlayOutPosition.EnumPlayerTeleportFlags.b, PacketPlayOutPosition.EnumPlayerTeleportFlags.c)' (test.sk, line 10: set {_set} to Set.of(PacketPlayOutPosition.EnumPlayerTeleportFlags.a, PacketPlayOutPosition.EnumPlayerTeleportFlags.b, PacketPlayOutPosition.EnumPlayerTeleportFlags.c)')
[02:45:49] [Server thread/ERROR]: The function 'PacketPlayOutPosition' does not exist. (test.sk, line 11: return new PacketPlayOutPosition(0,0,0,{_loc}.getYaw(),{_loc}.getPitch(),{_set},0,true)')
"""
Can someone help me?
I'm sorry I asked for something annoying from the beginning
Minecraft Version: 1.15.2
OK, I've been trying to build an FPS server for years, and I've realized that there's a problem in the process.
If you change the pitch/yaw through the teleport function provided in Minecraft, it will break off every time you shoot a gun.
I saw a very interesting that writing on the forum, but an error occurred and I couldn't operate it(Plugin version also matched the post context)
"""
[02:45:48] [Server thread/WARN]: net.minecraft.network.protocol.game.PacketPlayOutPosition refers to a non-existent class. (test.sk, line 2: net.minecraft.network.protocol.game.PacketPlayOutPosition')
[02:45:48] [Server thread/ERROR]: The function 'PacketPlayOutPosition' does not exist. (test.sk, line 8: return new PacketPlayOutPosition({_loc}.getX(),{_loc}.getY(),{_loc}.getZ(),{_loc}.getYaw(),{_loc}.getYaw(),{_set},0,true)')
[02:45:49] [Server thread/ERROR]: Can't understand this expression: 'Set.of(PacketPlayOutPosition.EnumPlayerTeleportFlags.a, PacketPlayOutPosition.EnumPlayerTeleportFlags.b, PacketPlayOutPosition.EnumPlayerTeleportFlags.c)' (test.sk, line 10: set {_set} to Set.of(PacketPlayOutPosition.EnumPlayerTeleportFlags.a, PacketPlayOutPosition.EnumPlayerTeleportFlags.b, PacketPlayOutPosition.EnumPlayerTeleportFlags.c)')
[02:45:49] [Server thread/ERROR]: The function 'PacketPlayOutPosition' does not exist. (test.sk, line 11: return new PacketPlayOutPosition(0,0,0,{_loc}.getYaw(),{_loc}.getPitch(),{_set},0,true)')
"""
Can someone help me?
I'm sorry I asked for something annoying from the beginning