Hello. I want to write a Skript code to add a command which makes all players look at the player running the command.
When I run the command, it says an internal error occured, and there is no other information given. What should I do?
Skript-packet and ThatPacketPlugin are downloaded on the server.
When I run the command, it says an internal error occured, and there is no other information given. What should I do?
code_language.skript:
command /lookatme:
trigger:
set {_loc} to location of player
set {_packet} to new play_server_look_at packet
set field 0 of {_packet} to 1
set field 1 of {_packet} to x-coordinate of {_loc}
set field 2 of {_packet} to y-coordinate of {_loc}
set field 3 of {_packet} to z-coordinate of {_loc}
set field 4 of {_packet} to false
set field 6 of {_packet} to 1
loop all players:
loop-player is not player
send loop-player packet {_packet}
Skript-packet and ThatPacketPlugin are downloaded on the server.