[ADMN] Spectate - Watch what other players are doing in first person [1.5.1]

Discussion in 'Inactive/Unsupported Plugins' started by Chipmunk9998, Jan 27, 2012.

  1. Offline


    Version: 1.11

    Spectate allows you to see what your players are doing from their point of view, simply by typing in /spectate [PlayerName]. You will see what they see as if you're looking through their eyes. To stop spectating, just type /spectateoff.

    • Watch users from their point of view by typing in /spectate [PlayerName].
    • Two different spectate modes. The second (scroll) mode lets you scroll through players by left clicking and right clicking your mouse keys, while the first (default) mode will let you spectate one person.
    Download Spectate


    Ops will also have these.
    • "spectate.use" - allows users to use the /spectate and /spectateoff commands.
    • "spectate.cantspectate" - users with this permission can't be spectated.
    The "spectate.cantspectate" permission will be automatically disabled, so it won't work unless you set "cantspectate Permission Enabled?" to true in the config.


    Video Examples:


    Version 1.9.2
    • API changes.
    • (Hopefully) fixed console error message spam.
    Version 1.9.1
    • Changed inventory to be on by default.
    • Added an option in the config for disabling commands while spectating.
    • Fixed not being able to enter the scroll mode.
    • Fixed trying to spectate while nobody else is online giving you an error.
    • Fixed scanning while nobody was on putting you in scan mode but not doing anything.
    • Fixed leaving while spectating generating an error.
    Full Changelog (open)

    Version 1.9
    • Changed the way commands work.
    • Fixed spectating players not being able to shoot projectiles and not being hit by projectiles.
    • Added a '/spectate inv' argument that toggles inventory on and off.
    • Added a spectate scan mode that switches through players at an interval. Type '/spectate scan (interval in seconds)' to enter the scan mode.
    • Made players not able to interact with doors, levers, buttons, etc... again. This was accidentally removed in the previous version.
    Version 1.8
    • Added a new spectate mode which lets you scroll through players! Typing in /spectatemode (1/default|2/scroll) will change your spectate mode.
    • Right clicking and left clicking while in the scroll mode will scroll through players.
    • You can now see the contents inside of a chest, dispenser, or furnace when the player you're spectating opens one.
    • Fixed players that are spectating being able to take items out of chests.
    • Fixed mobs targeting players that are spectating.
    • Possibly fixed interference with plugins that set different inventories per world. - This was untested, please tell me if it's still broken.
    • Fixed players being able to enter minecarts while spectating.
    • Fixed players being set on fire if they stop spectating while the person they were spectating was in fire or lava.
    Version 1.7.1
    • Fixed being able to start spectating the person you're currently spectating.
    • Fixed EntityRegainHealthEvent thinking every mob was a player.
    Version 1.7
    • Made it so more than one person can spectate someone at a time.
    • Made spectating a lot smoother, now you can see every little twitch they make.
    • Removed the "Permissions enabled?" option in the config.
    • Added a "canspectate Permission Enabled?" option in the config. Setting it to false will make it not check if someone has the "spectate.cantspectate" permission before spectating.
    • Fixed being able to take damage while spectating.
    • Fixed being able to inflict damage to players and mobs while spectating.
    • Made it so people that are spectating can't interact with doors, levers, buttons, etc...
    Version 1.6
    • Added a spectate.cantspectate permission that makes it so the person that has it can't be spectated.
    • Added /spec and /specoff.
    • Made it so that doing /spectate (player) while spectating someone will make you start spectating that player, instead of having to do /spectateoff first.
    Version 1.5.2
    • Fixed still spectating a player after logging off.
    Version 1.5.1
    • Fixed being invisible after using /spectateoff.
    Version 1.5
    • Hopefully fixed hacked clients being able to see you.
    • Using the new Vanish api.
    • If you're spectating someone, you can now see their health and hunger
    Version 1.4.2
    • You will now get your inventory and armor back if you were forced to stop spectating.
    Version 1.4.1
    • If the server reloads while spectating, you will be sent back to your previous location.
    • Minor bug fixes.
    Version 1.4
    • Disconnecting while spectating will now return you back to your original location.
    • If the person who you are spectating dies or disconnects from the server, you will return back to your original location.
    Version 1.3.1
    • Fixed bug that wouldn't let you spectate if you weren't op, even if you had the permission node.
    • Added Herobrine. ;)
    Version 1.3
    • Added the ability to see their inventory and armor.
    • Minor tweaks and bug fixes.
    Version 1.2
    • Added config for turning permissions on and off.
    Version 1.1
    • Stopped players from picking up items, dropping items, breaking blocks and placing blocks while spectating.
    Version 1.0.1
    • Fixed not letting you out of spectate mode.
    Version 1
    • First release

    Is there a bug? Plugin isn't working right? Please report it in the thread.
  2. Offline


    Works perfectly, great plugin. :)
  3. Offline


    Is the source to this available on GitHub, and is it open source? If so I wouldn't mind having a look at this to learn how you do it. I've seen it in client mods, just not server. It's a great idea, btw.
    Tauryuu likes this.
  4. Offline


    You forgot to remove the "Something's fucked up" from your code. ;)
  5. Offline


    does it use simple invisiblity, or something more cheatproof, like VanishNoPacket?
  6. Offline


    /spectateoff doesn't work It says :"You are currently spectating someone. Type /spectateoff to stop. and nothing happens when i type /spectateoff and i got the same problem
  7. Offline


    Oh, sorry about that! I was using that for testing purposes. =P


    Sure, I'll get the source code up today or tomorrow.

    Edit: Or maybe the next day. =P
  8. Seems interesting, I'll be following this project.
  9. Offline


    ooo cool
    capsiq likes this.
  10. Offline


    Seems amazing!
    Will test it out tommorow.
    Good to follow xrayers and hackers <3
  11. Offline


    Where I can download v1.3?
  12. Offline


    This looks amazing!
    Could you add a feature that will scroll through everybody? Like /spectate all (interval) or just set an interval in a config for now?

    Btw awesome!
  13. Offline


    Sure, I'll start working on it and see what I can do.
    MetalMadness likes this.
  14. using permissions EX and set in the config "Enable Permissions?: true" but the node "spectate.use" doesn't work at all nobody can use it
  15. Offline


    I fixed this bug earlier this morning and uploaded it, just waiting for it to get approved.
  16. ok thank's for this plugin !
  17. Offline


    Source now available on GitHub.
    RROD likes this.
  18. Offline


    When i spectate someone the person says
    "WTF worst why are you in me.."
    They see like a clone of me right infront of them :S
    I thought this would be usefull for checking for hackers and cheaters.
    So i hope you can fix this.
  19. Offline


    I've gotten this problem a lot while testing the plugin with other people, then when they force update Minecraft they can't see me anymore. I think it may have to do with some of the mods they have.

    I'll keep testing and see what's going on..
  20. Offline


    alright good.
    Hopefully it can be fixed ;)
  21. Offline


    03.02 22:11:48 [ServerINFO    ... 16 more
    03.02 22
    :11:48 [ServerINFO    at com.Chipmunk9998.Spectate.SpectateListener.onPlayerQuit(SpectateListener.java:99)
    03.02 22:11:48 [ServerINFO Caused byjava.lang.NullPointerException
    03.02 22
    :11:48 [ServerINFO    ... 11 more
    03.02 22
    :11:48 [ServerINFO    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
    03.02 22:11:48 [ServerINFO    at java.lang.reflect.Method.invoke(Method.java:601)
    03.02 22:11:48 [ServerINFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    03.02 22:11:48 [ServerINFO    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    03.02 22:11:48 [ServerINFO    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    03.02 22:11:48 [ServerINFO Caused byjava.lang.reflect.InvocationTargetException
    03.02 22
    :11:48 [ServerINFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    03.02 22:11:48 [ServerINFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    03.02 22:11:48 [ServerINFO    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    03.02 22:11:48 [ServerINFO    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    03.02 22:11:48 [ServerINFO    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:587)
    03.02 22:11:48 [ServerINFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    03.02 22:11:48 [ServerINFO    at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
    03.02 22:11:48 [ServerINFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
    03.02 22:11:48 [ServerINFO    at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:165)
    03.02 22:11:48 [ServerINFO    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    03.02 22:11:48 [ServerINFO    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    03.02 22:11:48 [ServerINFO    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
    03.02 22:11:48 [ServerINFO org.bukkit.event.EventException
    03.02 22
    :11:48 [ServerSEVERE Could not pass event org.bukkit.event.player.PlayerQuitEvent to Spectate
    03.02 22
    :11:48 [ServerINFO CraftPlayer{name=Twizek}
    Using 1.1-R3 and Spectate 1.4
  22. Offline


    I submitted an update to fix this, just waiting for it to get approved now.
  23. Offline


    I would assume it uses simple invisibility.
    Please remove the changelog from a spoiler
  24. Offline


    Alright, done.
  25. Offline


    First approval of the day!
  26. Offline


    [SEVERE] Error occurred while enabling Spectate v1.4.2 (Is it up to date?): org.bukkit.plugin.PluginManager.registerEvents(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)V
    java.lang.NoSuchMethodError: org.bukkit.plugin.PluginManager.registerEvents(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)V
        at com.Chipmunk9998.Spectate.Spectate.onEnable(Spectate.java:61)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:970)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:190)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:173)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:355)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:342)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:174)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
  27. Offline


    What version of bukkit are you using?
  28. Offline


    I would imagine this being very helpful for server admins, as a new way to see what players are doing instead of using vanish, which can miss some things.
  29. Really nice plugin!
    It would be even more epic if you could see if they are using a xray texture pack xD
    Doubt it can be done without Spout tho, right? D:
  30. Offline


    When I spectate people they say it's unplayable and I'm in their face.
    They say I' spazzing in their face like when someone teleports to u for the few seconds they reach you.

Share This Page