Force Player to Spectate Someone

Discussion in 'Plugin Help/Development/Requests' started by Connerman14, Jun 18, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Connerman14

    As we all know, 1.8 came out with a new gamemode called "spectator mode." I know how to put a player in spectator mode, but I'm not sure how to make a player actually spectator another once in spectator mode (done so by left clicking the player you want to spectate while in spectator mode). Does anyone know a simple way to do this?
     
  2. in the EntityPlayer class (nms) there's the e(Entity) method. With this you can force to spectate. ((CraftPlayer)player).getHandle().e(((CraftEntity)e).getHandle()); That should do the trick
     
Thread Status:
Not open for further replies.

Share This Page