Home›Java›Mods›SpectatorAPI
SpectatorAPI
ModsJava

SpectatorAPI

Java mod listed for Minecraft 1.7–1.10. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
[​IMG]
This api have spectator methods for your plugin.

Spectators have:
- Invisibility;
- No interaction;
- No damage;
- No commands;
- God mode;
- Fly

Methods:
[​IMG]
[​IMG]
[​IMG]
​
Spoiler
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;
​


How to import and use the methods:

1º Import: me.aleksbertassi.spectatorapi.*;

2º Add: [​IMG]

3º Use: SpecAPI.methodName();
Example: SpecAPI.addSpectator(Noob, "You have entry in the spectator mode", spectatorloc);
​
Quick facts

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.

Explore more