[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

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Spectate
    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.


    Features:
    • 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


    Permissions:

    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:
    ----------------------------------------------------------------------------------------------------------------


    Changelog:

    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

    Smex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Works perfectly, great plugin. :)
     
  3. Offline

    RROD

    My BukkitDev Profile
    My Plugins (2)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
    Thanks.
     
    Tauryuu likes this.
  4. Offline

    Smex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You forgot to remove the "Something's fucked up" from your code. ;)
     
  5. Offline

    DaveDee

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    does it use simple invisiblity, or something more cheatproof, like VanishNoPacket?
     
  6. Offline

    darkturn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    /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

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Oh, sorry about that! I was using that for testing purposes. =P

    Fixed!

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

    Edit: Or maybe the next day. =P
     
  8. Offline

    MeneXia

    My BukkitDev Profile
    My Plugins (3)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Seems interesting, I'll be following this project.
     
  9. Offline

    shanko

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ooo cool
     
    capsiq likes this.
  10. Offline

    worstboy32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Seems amazing!
    Will test it out tommorow.
    Good to follow xrayers and hackers <3
     
  11. Offline

    fromgate Retired Staff

    My BukkitDev Profile
    My Plugins (30)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Where I can download v1.3?
     
  12. Offline

    MetalMadness

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sure, I'll start working on it and see what I can do.
     
    MetalMadness likes this.
  14. Offline

    fonkfader

    My BukkitDev Profile
    My Plugins (3)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I fixed this bug earlier this morning and uploaded it, just waiting for it to get approved.
     
  16. Offline

    fonkfader

    My BukkitDev Profile
    My Plugins (3)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ok thank's for this plugin !
     
  17. Offline

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Source now available on GitHub.
     
    RROD likes this.
  18. Offline

    worstboy32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    worstboy32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    alright good.
    Hopefully it can be fixed ;)
     
  21. Offline

    Mercury

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    PHP:
    1. 03.02 22:11:48 [Server] INFO    ... 16 more
    2. 03.02 22:11:48 [Server] INFO    at com.Chipmunk9998.Spectate.SpectateListener.onPlayerQuit(SpectateListener.java:99)
    3. 03.02 22:11:48 [Server] INFO Caused by: java.lang.NullPointerException
    4. 03.02 22:11:48 [Server] INFO    ... 11 more
    5. 03.02 22:11:48 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
    6. 03.02 22:11:48 [Server] INFO    at java.lang.reflect.Method.invoke(Method.java:601)
    7. 03.02 22:11:48 [Server] INFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    8. 03.02 22:11:48 [Server] INFO    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    9. 03.02 22:11:48 [Server] INFO    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10. 03.02 22:11:48 [Server] INFO Caused by: java.lang.reflect.InvocationTargetException
    11. 03.02 22:11:48 [Server] INFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    12. 03.02 22:11:48 [Server] INFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    13. 03.02 22:11:48 [Server] INFO    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    14. 03.02 22:11:48 [Server] INFO    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    15. 03.02 22:11:48 [Server] INFO    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:587)
    16. 03.02 22:11:48 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    17. 03.02 22:11:48 [Server] INFO    at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
    18. 03.02 22:11:48 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
    19. 03.02 22:11:48 [Server] INFO    at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:165)
    20. 03.02 22:11:48 [Server] INFO    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    21. 03.02 22:11:48 [Server] INFO    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    22. 03.02 22:11:48 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
    23. 03.02 22:11:48 [Server] INFO org.bukkit.event.EventException
    24. 03.02 22:11:48 [Server] SEVERE Could not pass event org.bukkit.event.player.PlayerQuitEvent to Spectate
    25. 03.02 22:11:48 [Server] INFO CraftPlayer{name=Twizek}
    26.  
    Using 1.1-R3 and Spectate 1.4
     
  22. Offline

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I submitted an update to fix this, just waiting for it to get approved now.
     
  23. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I would assume it uses simple invisibility.
    Please remove the changelog from a spoiler
     
  24. Offline

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Alright, done.
     
  25. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    First approval of the day!
     
  26. Offline

    GunterB

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code (Text):
    1. [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
    2. java.lang.NoSuchMethodError: org.bukkit.plugin.PluginManager.registerEvents(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)V
    3.     at com.Chipmunk9998.Spectate.Spectate.onEnable(Spectate.java:61)
    4.     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
    5.     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:970)
    6.     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    7.     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:190)
    8.     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:173)
    9.     at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:355)
    10.     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:342)
    11.     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:174)
    12.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    13.     at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  27. Offline

    Chipmunk9998

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    GunterB
    What version of bukkit are you using?
     
  28. Offline

    abcedea

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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. Offline

    Xickle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    SheepSteve

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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