Simply to use:
set a Spectator:
nflug.SpectatorAPI.Main.setSpectator(Player Spectator, Entity Spectating);
Automatic checks if the Player is Spectating or not.
remove a Spectator:
nflug.SpectatorAPI.Main.removeSpectator(Player Spectator);
Automatic checks if the Player is Spectating or not.
check if Spectating:
nflug.SpectatorAPI.Main.isSpectating(Player Spectator)M
It will save the GameMode you had before Spectating and adds it after Spectating. If you log out in Spectating it will set the GameMode before Spectating too.
I hope you have fun
!
set a Spectator:
Code (Text):
nflug.SpectatorAPI.Main.setSpectator(Player Spectator, Entity Spectating);
remove a Spectator:
Code (Text):
nflug.SpectatorAPI.Main.removeSpectator(Player Spectator);
check if Spectating:
Code (Text):
nflug.SpectatorAPI.Main.isSpectating(Player Spectator)M
I hope you have fun
!Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
SpectatorAPI 1.8 is a free Minecraft Java mod. Downloaded 550 times (via Spigot). Download it and open it directly in the game.