Spectator Target (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.4-alpha4, 2.7 (Paper Spectator Event)
Syntax
spectator target [of %-players%]Description
Grabs the spectator target entity of the players.
Examples
on player start spectating of player:
message "&c%spectator target% currently has %{game::kills::%spectator target%}% kills!" to the player
on player stop spectating:
past spectator target was a zombie
set spectator target to the nearest skeleton