ModsJava
SpectatorAPI
Java mod listed for Minecraft 1.7–1.10. Downloads from the MC Java Mods app on Android.
⬇ Download on Spigot
This api have spectator methods for your plugin.
Spectators have:
- Invisibility;
- No interaction;
- No damage;
- No commands;
- God mode;
- Fly
Methods:
Spoiler
Loc - Place where the player will be transported to spectate;
Msg - Message that he spectator mode's exit;
Loc - Place where the player will be transported on turn off spect;
addSpectator( Player , Msg , Loc );
Player - Who will turn into spectator;
Msg - Message that will appear when it changes to spectator; Loc - Place where the player will be transported to spectate;
removeSpectator( Player , Msg , Loc );
Player - Who will turn off spectator; Msg - Message that he spectator mode's exit;
Loc - Place where the player will be transported on turn off spect;
forceRemoveSpectator( Player );
(Method used when the player leaves the game)
Player - Who will turn off spectator;
(Method used when the player leaves the game)
How to import and use the methods:
1º Import: me.aleksbertassi.spectatorapi.*;
2º Add:
3º Use: SpecAPI.methodName();
Example: SpecAPI.addSpectator(Noob, "You have entry in the spectator mode", spectatorloc);
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- 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 is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10. Downloaded 103 times (via Spigot). Download it and open it directly in the game.