This plugin (for 1.17-1.18, possibly more) allows players on a server to enter spectator mode using a command. If they use the command again, they will leave the spectator mode and will be teleported back to their original position. Additionaly all effects, remaining air bubbles, gamemode and the time on fire will be restored.
Commands
/c, /spec or /spectator to enter spectator mode
/c stay, /spec stay oder /spectator stay to stay where you are currently in spectator mode(Admin command)
Permissions
- spec.* - All plugin permissions
- spec.use - Use the /c, /spec and /spectator commands
- spec.stay - Get access to the stay sub command
- spec.bypass - Bypass requirements to enter spectator mode