I was looking to make a plugin that makes spectating only possible from other players' 1st and 3rd person perspectives and completely disable freeroaming so people cannot ghost and explore using spectator mode. Is there any straightforward way to do this or does a plugin exist that does already does this? I was looking at the javadocs but couldn't find much other than getSpectatorTarget and setSpectatorTarget. All the ways to achieve this that I can think of use some hacky way like constantly checking if someone has a spectator target. Not sure how great that'd be for performance as well as it feeling really hacky probably.