Spectator
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); }
Idea:
Could you add that you can change the player you are spectating by doing Right or Left Click?
Update plugin to 1.7.2
Greetings.
This is me presenting a problem with this plugin, since the install everything works fine, I put the time to spectate time I want the person but when the time is up gives me errors in console You know who this is?
@nejcneo
yes, I'm working on this...
@michidk
thx
very nice.. pleaz update
If player leaves game you can move with his items and do stuff. Totally un-secure :)
Hello,
I am trying to use this plugin inside my project, but when i load it in mc, im getting a class exception not found. I have added the jar, and imported in my class file. Can you let me know what i am missing?
Server is 1.5.2.
Thanks, Tom
@ipate8
Something for developers
whats a build path'
Wow it was just yesterday I was looking at this. Thanks for updating.
Good to see a plugin like this come back :) Very useful!
@FusRoChris @Islid @blablubbabc
updated and fixed! file waiting for aproval
@FusRoChris
with the new update I'll fix this!
@Islid
I'll update this plugin!
Bit of a problem, I was spectating someone when they left and now I have there Inventory and I can't get mine back at all, any way to fix this? :/
Just curious, but do you have any plans on updating this further throughout the newer versions of bukkit and Minecraft in general? I admit, I haven't had a chance to look at the plugin in action, but as with just about any plugin, there are the obvious concerns that the more out of date it is, the less likely it is to work without issue. Is there a reasonable expectation that the plugin will be updated whenever it's non-functional (not that it isn't functional now, just whenever that occurs) at some point in the near future?
Otherwise, this is precisely the plugin I've been looking for, for quite some time. A very useful tool to keep an eye on potential griefers and hackers without having to be around them in person all the time. :)
Does this make the player also invisible in the tablist? Cause the plugin "Spectate" currently makes players also invisible in the tablist (because of how bukkits api for making players invisible works..), but my players then always know that I am spectating them.. :(
@Den_Abr
With the new version!
Sources?
@jacemac88
haha, thx :)
i love this! i can't wait to try it... sadly i can't right now... but will do asap!