command /spectate <player>:
trigger:
if command sender's spectator target is set:
send "You're already spectating"
else:
set command sender's gamemode to spectator #why not automatically do this on setting the latter expression
set command sender's spectator target to arg 1
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#getSpectatorTarget--
Seeing this is already a spigot/bukkit method, i'm hoping this would be easy to implement.
Cheers!
Added for next release
holy shit that was fast. made me happy, thanks for your work!
Most helpful comment
holy shit that was fast. made me happy, thanks for your work!