SpectatorAPI 1.8 1.1

The best API to Spectate Entitys/Players/Mobs

  1. nflug
    Contributors:
    nflug
    Simply to use:

    set a Spectator:
    Code (Text):

    nflug.SpectatorAPI.Main.setSpectator(Player Spectator, Entity Spectating);
     
    Automatic checks if the Player is Spectating or not.

    remove a Spectator:
    Code (Text):

    nflug.SpectatorAPI.Main.removeSpectator(Player Spectator);
     
    Automatic checks if the Player is Spectating or not.

    check if Spectating:
    Code (Text):

    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 :)!