If you want to force a player to spectate you need to find out their license name. This is the the value returned by the "getUsername()" method in the NewConnectionResponse class associated with the player's connection. To find out which connection is associated with the player you need to use the value returned by the "getConnectionID()" method in the NewPlayerResponse. When have the player's connectionID you can get the username of the player's connection by using the "getUsername()" as I said above. When you know the player's license name you have to send the following command to LFS:
/spec amp88
Where you replace the "amp88" with the player's license name. To send the command to LFS you need to create a new MessageRequest containing the above String then send it to the client. Let me know if that's enough information for you or if you're still struggling.