-
Notifications
You must be signed in to change notification settings - Fork 0
Commands Reference
Limited Spectator provides two main commands for entering and exiting spectator mode.
Current Stable Version: v1.2.1
| Feature | Stable v1.2.1 (Current) | Legacy v1.0.2 |
|---|---|---|
| Commands | ✅ /spectator, /survival
|
✅ /spectator, /survival
|
| Permission Levels | ✅ Configurable (0-4) | 🔒 Fixed at 0 (all players) |
| OP Requirement | ✅ Configurable | ❌ Not available |
Note: Permission configuration is available in v1.2.1. Legacy v1.0.2 always uses permission level 0.
| Command | Permission (Stable) | Permission (Beta) | Description |
|---|---|---|---|
/spectator |
Level 0 (all players) | Configurable (default: 0) | Enter limited spectator mode |
/survival |
Level 0 (all players) | Configurable (default: 0) | Exit spectator mode and return to survival |
Enters limited spectator mode, allowing the player to fly and observe with restrictions.
/spectator
When executed:
- Saves Current Position: Your exact coordinates are saved as the "starting position"
- Changes Game Mode: Sets you to Adventure mode with flight abilities
- Enables Flight: Players can double-tap spacebar to start flying
- Hides HUD: Hides the HUD for cleaner viewing (F1 key toggles temporarily)
- Applies Restrictions: All configured restrictions take effect immediately
Entered spectator mode. Use /survival to return.
/spectator
Result: You begin flying at your current position, which becomes your boundary center.
Configurable permission level - Set in config/limitedspectator-common.toml:
[commands]
spectator_command_permission_level = 0 # 0-4
require_op_for_spectator = false####Legacy v1.0.2
Fixed at permission level 0 - All players can use /spectator. No configuration available.
Permission is controlled by two config options:
[commands]
spectator_command_permission_level = 0
require_op_for_spectator = falsePermission Levels:
-
0- All players can use the command -
1- Moderators only (bypass spawn protection) -
2- Operators only -
3- Operators (admin commands) -
4- Console/high-level admins only
Operator Requirement:
- If
require_op_for_spectator = true, only OP players can use the command regardless of permission level
You do not have permission to use this command.
Cause: Your permission level is below spectator_command_permission_level
Solution: Ask a server admin to give you permission or adjust the config
You are already in spectator mode.
Cause: You're already in spectator mode
Solution: Use /survival to exit first
Exits spectator mode and returns the player to survival mode at their starting position.
/survival
When executed:
-
Teleports to Start: Returns you to the exact position where you used
/spectator - Restores Game Mode: Sets you back to Survival mode
- Disables Flight: Removes flight abilities
- Shows HUD: Restores the HUD (if it was hidden)
- Clears State: Removes you from the spectator tracking system
Returned to survival mode.
/survival
Result: You're teleported back to where you started spectating and returned to survival mode.
[commands]
survival_command_permission_level = 0Default: Permission level 0 (all players)
Recommended: Keep this at 0 so spectators can always return to survival mode themselves.
You are not in spectator mode.
Cause: You're not currently in spectator mode
Solution: Use /spectator to enter spectator mode first
You do not have permission to use this command.
Cause: Your permission level is below survival_command_permission_level (unusual configuration)
Solution: Ask an admin to adjust the config or use /gamemode survival if you have OP
Edit config/limitedspectator-common.toml:
[commands]
# Who can enter spectator mode
spectator_command_permission_level = 0
# Who can exit spectator mode
survival_command_permission_level = 0
# Require OP status for spectator commands
require_op_for_spectator = falseEveryone can enter and exit spectator mode:
spectator_command_permission_level = 0
survival_command_permission_level = 0
require_op_for_spectator = falseOnly operators can enter spectator mode:
spectator_command_permission_level = 2
survival_command_permission_level = 0
require_op_for_spectator = falseOnly OP players can use spectator commands:
spectator_command_permission_level = 0 # Ignored
survival_command_permission_level = 0 # Ignored
require_op_for_spectator = trueOnly high-level admins can grant spectator access:
spectator_command_permission_level = 4
survival_command_permission_level = 0
require_op_for_spectator = falseUse case: Admins manually set players to spectator mode using other commands
/op <player>
This gives permission level 4 (all commands)
If using mods like LuckPerms or FTB Chunks, set permissions:
# Example with LuckPerms
/lp user <player> permission set limitedspectator.command.spectator true
Note: Limited Spectator doesn't have native permission mod integration yet. Use permission levels in the config instead.
Player: /spectator
Server: Entered spectator mode. Use /survival to return.
[Player flies around, observes base]
Player: /survival
Server: Returned to survival mode.
Player: /spectator
Server: Entered spectator mode. Use /survival to return.
[Player flies 70 blocks away - approaching limit]
Server (action bar): Warning: You are reaching the distance limit!
[Player flies 80 blocks away - exceeds limit]
Server: You have exceeded the distance limit and were teleported back!
[Player teleported to starting position]
Player: /survival
Server: Returned to survival mode.
Player: /spectator
Server: Entered spectator mode. Use /survival to return.
[Player tries to enter Nether portal]
Server: You cannot change dimensions in spectator mode!
[Player remains in Overworld]
Player: /survival
Server: Returned to survival mode.
Player: /spectator
Server: You do not have permission to use this command.
[Player asks admin for permission]
Admin: /op Player
Server: Made Player a server operator
Player: /spectator
Server: Entered spectator mode. Use /survival to return.
If reset_position_on_logout = true (default):
- Player logs out while in spectator mode
- On rejoin, player spawns at their spectator starting position
- Player is still in spectator mode
- Must use
/survivalto exit
Prevents: Position abuse by logging out at distant locations
If you die while in spectator mode (with enable_invulnerability = false):
- Normal death mechanics apply
- Spectator state is cleared
- You respawn normally at your respawn point
- Must use
/spectatoragain to re-enter
If an admin uses /gamemode creative <player> on a spectator:
- Player changes to creative mode
- Spectator state persists internally
- Distance limits and restrictions still apply
- Use
/survivalto properly exit spectator mode
Recommendation: Always use /survival instead of /gamemode to exit spectator mode properly.
Player: /spectator
Server: Entered spectator mode.
[Starting position: X=100, Y=70, Z=200]
Player: /survival
Server: Returned to survival mode.
[Teleported to X=100, Y=70, Z=200]
[Player walks to X=500, Y=80, Z=600]
Player: /spectator
Server: Entered spectator mode.
[New starting position: X=500, Y=80, Z=600]
Note: The starting position updates each time you use /spectator
Admins can use vanilla commands:
/gamemode survival <player>
However, this does not properly clear spectator state. The player should use:
/execute as <player> run survival
Or manually:
/tell <player> Please use /survival to exit spectator mode properly
There's no built-in command to check who is in spectator mode. Admins should:
-
Check the server console for spectator entry/exit logs:
[LimitedSpectator] Player entered spectator mode at (X, Y, Z) [LimitedSpectator] Player exited spectator mode -
Use
/data get entity <player>and look for:-
playerGameType: 2(Adventure mode) -
abilities.mayfly: 1b(flight enabled)
-
Symptoms: /spectator shows "Unknown command"
Causes:
- Mod not installed on server
- Mod failed to load
- You're on the client without the mod
Solutions:
- Check server logs for mod loading
- Verify
LimitedSpectator-1.21.x-1.2.1.jaris inmods/folder - Restart the server
Symptoms: Command executes but nothing happens
Causes:
- You're already in spectator mode (
/spectator) - You're not in spectator mode (
/survival) - Config has incompatible settings
Solutions:
- Check your current game mode:
/gamemode - Try the opposite command
- Check server logs for errors
Symptoms: "You do not have permission to use this command"
Solutions:
- Ask admin to check
spectator_command_permission_levelin config - Ask for OP:
/op <yourname> - Check if
require_op_for_spectator = true
Next: Learn about Features or check FAQ & Troubleshooting for common issues.