Mineuniverse
Plugins

Spectator

PLUGIN
Spectator
by _ForgeUser8684276
Download Claim this project
6,085 downloads
0 likes
Updated Oct 14, 2026
0 hypes
Admin Tools Developer Tools
Advertisement Remove ads with Premium →

Informations

About

Spectator is a plugin, allows you to spectate other people in the first person view. You may also see their gamemode, hungerbar, healtbar and inventory of the player, you're spectating. Spectator also got an API for plugin developers which easily allows you to let people spectate other people.

Commands & Permissions

The two commands & permissions are:

/spectateon <player> <time> | spectate.on

/spectateoff | spectate.off

API

Here's a little guide how to use the included API for plugin developers:

1. Add Spectator.jar into your build path

2. Initialise the Specator plugin

3. Start coding! ;)

There are 3 methods included:

specateOn(Player p, Player t, int time) | p is the Player who will spectate target t. Time is the time, how long he'll spectate him.

spectateOff(Player p) | This will just turn off the spectatormode of player p

updatePlayer(Player t) | This will update the spectated player (target) for all spectators. Use this in the PlayerMoveEvent!

Here's a little example:

	@EventHandler
	public void onDeath(PlayerDeathEvent event) {
	
		Player p = event.getEntity();
		Player t = p.getKiller();
		
		Spectator.spectateOn(p, t, 20);
	}
	
	@EventHandler
	public void onMove(PlayerMoveEvent event) {
		
		Player t = event.getPlayer();
		
		Spectator.updatePlayer(t);
	}
Spectator [1.6.2]
MC CB 1.6.2-R0.1
Release 2013-09-04 Get
Spectator
MC CB 1.4.7-R1.0
Release 2013-03-11 Get

More from _ForgeUser8684276

Advertisement Remove ads with Premium →

You Might Also Like