Spectate
What is spectate?
Spectate allows you to watch players from their point of view, simply by typing in /spectate (player). You will see exactly what they see, and they'll never know you were watching them.
You can also watch them from different angles. There's Third Person, Third Person Front (looking at their face), and Freeroam (you can walk freely around and watch them from any angle).
There's also "Scroll" mode and "Scan" mode. Scroll mode allows you to right and left click to change between players, and Scan mode will change the player you're spectating every few seconds (you can set how long until it switches to the next person).
There's also an API, which allows developers to take control of the entire plugin.
To see a full list of everything you can do with Spectate, head over to the Commands page.
Spectate has undergone a complete rewrite.
Please make sure your permissions are up to date, and please report any bugs on the tickets page.
Spectate 2.0 is here!
2.0 includes:
- A complete rewrite of the entire plugin from the ground up.
- Lots of bugs fixes!
- Spectate is now compatible with Multiverse Inventories.
- A fresh new API that lets developers control the ENTIRE plugin!
And some new features:
- A new spectate angle, Third Person Front mode! Now you can watch the player you're spectating while looking at their face. What more could you ask for?
- Another new spectate angle, Free Roam mode! Now you can walk around like a ghost while still viewing their inventory. Spooky!
- You can now see the gamemode and XP of the player you're spectating!
- If you were invisible before spectating, you will still be invisible when you stop spectating.
And many more features I forgot to write down!
So what are you waiting for? Download the plugin for the complete Spectating experience today!
@Drake63628
This could just be a simple error in my code, I'll look at it and report back...
Chip, the server I am on uses vanishnopacket from mbaxter and spectate together to spectate someone, and when we're using vanished, we're not targeted by mobs, so when we spectate the person we're using spec on ALSO is not targeted, Is there a way to fix this to make either plugin recognize us as NOT being there? It sees the person as us, but the second we stop spectating, they start getting attacked like we were never there. We've tested it from an outside source as well and proven that it seems to take our "no target" and convert it to the player temporarily.
@Chipmunk9998
Well that sounds fun. What about just uploading the code files as a zip to here? They should approve that I would think, shouldn't they? Thanks for the updates either way =)
@Saiyan1337
I'll update it to 1.5.1... If bukkit added a setHeldSlot method for players, it would make it compatible with each version.
@ryvix
I can't, the computer I have all my code on isn't connected to the internet. Right now I have to transfer release files from my desktop on a usb flash drive to this laptop so I can upload them, and all the github stuff is set up on that computer.
Hey, can you please update your github, thanks =)
Doesnt load in 1.5.1
@feeg1
Thanks! :)
Very nice plugin
@wrecktify80
What he probably did was make it so that every time you moved, it closed your inventory. This effectively stopped the exploit, but now it's interfering with Spectate. With Spectate you're moving constantly moving around with the player you're spectating, thus constantly having your inventory closed.
Edit:
Alright, in version v3.50 t0049 of ChestShop, there's an option in the configuration to turn off the teleportation bug fix:
TURN_OFF_CRAFTBUKKIT_TELEPORTATION_BUGFIX
Everyone just needs to use this version and change that option in the config to true, and you won't have that bug anymore.
Well I isolated this to the chestshop plugin. (http://dev.bukkit.org/server-mods/chestshop) As soon as I remove it, spectate works like normal. I think it may have to do with the fact that chestshop recently introduced a change to their code to help prevent a bad exploit that allowed duplication. The Chestshop plugin author claims it's a bukkit code problem and not his plugin, so he coded a workaround to prevent it. The plugin allows clicking the chestshop sign to open the chest, then players would teleport or use a minecart to move away from the chest, move the item to their inventory, then the item would still be in the chest. My guess is that whatever he did to prevent this loophole also effected the spectate plugin. This is just a guess, as I'm not a coder. Chestshop is a very popular plugin so I hope there can be some kind of fix for this issue.
I'll run a secondary test server and start stripping out other plugins one by one to find a possible conflict. Craftbukkit and spectate versions havent changed for awhile, so my assumption is another plugin updates causing the problem. Can you guys pastebin your plugin list? Mine is pretty heavily loaded.
http://pastebin.com/9HjSWnYG
@Ebins
I use Spectate on my server, but I've never had this happen before. To be able to fix it, I would have to be able to reproduce it. I'll try testing every possible combination of commands I could to do reproduce it, but I might not find anything...
I'm having the exact same problem as the other players where unless the person they're viewing doesn't move, you can't stop spectating or even close out the client. I submitted a ticket for this a while ago. I think the fact that a lot of us are having the same problem kinda removed the idea that its an isolated incident. Could you look into this please? thanks! :)
@lANTHONYl
The reason you're removed from the player list is because I use the bukkit vanish API. I could probably find a way around it, but it may interfere with other plugins.
As for the second issue, it's usually caused by lag. It works sometimes, and other times it doesn't. I'm not exactly sure how I could fix that without rewriting the plugin, which I have been needing to do anyways for quite some time...
I've been using spectate for a while now and love it. I don't experience the issues that others seem to. The chat dialogue will close if the player opens their inventory or a chest or similar. No big deal. There are 2 concerns that i have with spectate though.
1. When you spectate, you are removed from the player list. It makes it kinda obvious when you are spectating players.
2. Players can see you warp into them, especially if they are in 3rd person view.
These 2 issues diminish the covert actions of admins. Would be nice if there was a vanish option so you go invisible or something. I suppose i could use VNP in tandem, but that still leaves the player list issue.
Thoughts?
Whenever I spectate someone in creative mode, my inventory changes to theirs when I stop spectating... Please fix this
Yup same thing happened with me wrecktify80! Just recently. :/
Yea, I don't think you understood me correctly. Every 1/10th of a second a player moves it closes the chat screen instantly. After pressing T to get the chat box it closes almost instantly, without getting any time to type /spec off. Unless the player stops moving you can't type, hit escape, or do anything to get out of spec mode. The only way is to crash your minecraft client with taskmanager or taskbar. This never happened until recently, and I'm not sure what caused it.
No this is different now. Now you cant type at all when someone else is moving when your in spec mode.
@wrecktify80
Well, it's closing your inventory because of how the plugin works. When someone closes their inventory, it calls "player.closeInventory()" on you. The closeInventory() method pretty much just closes all gui screens you have open. So if you have your chat open and the person being spectated opens and closes their inventory, it makes your client close your chat.