Description
Description
Basic spectator mod that allows you to be invisible to other players (especially for server moderation).
Usage
/spectate [playername]- joins a player or yourself to spectator mode/unspectate [playername]- leaves a player or yourself from spectator mode/spectating- shows a list of all players who are spectating at the moment
(All these commands require the spectate privilege to execute.)
API
spectate.enable(player)--> enables the spectator mode for a player (player = obj)spectate.disable(player)--> disables the spectator mode for a player (player = obj)spectate.check_status(player)--> returns bool - checks if a player is a spectator