Class SpectateCommand


public class SpectateCommand extends AbstractPlayerCommand
A command collection for entering, leaving, and controlling spectating.

Usage:

  • /spectate: toggle spectating for yourself
  • /spectate <player>: spectate a player through an attached camera
  • /spectate target: spectate the entity in view through an attached camera
  • /spectate free: free-fly spectating, entering spectating if needed
  • /spectate exit: stop spectating
  • /spectate set <player> [--state=on|off] [--type=?]: set spectating for another player, toggling when no state is given, optionally with a specific spectator gamemode type
  • Constructor Details

    • SpectateCommand

      public SpectateCommand()
      Default Constructor for a SpectateCommand instance.