Spectator mode

Discussion in 'Spigot Plugin Development' started by MineSideLP, Dec 5, 2018 at 9:09 PM.

  1. Hey,

    how can I do that players that are in a specified arraylist cannot prevent placing blocks for other players. I try to hide the player and set the player invisible but it do not work? Any ideas?

    Thanks for help!
  2. Maybe remove the players entity with packets? (PacketPlayOutEntityDestroy, but I don't know if that's not causing problems?)
    Also you could just push the spectator away from the players so they can't even get close to them.
    • Like Like x 1
  3. Yes but I do not want to push the spectator away. I want it like the spectator mode on GommeHD.net for BedWars.
  4. And how can I do this with the PacketPlayOutEntityDestroy?
  5. Here is a good tutorial about packets. There are also some video tutorial on youtube. Also here is a wiki about Protocol which is useful.
  6. md_5

    Administrator Developer

    Literally just set them to spectator mode?

    • Winner Winner x 1
  7. Yes but I want it like the server gommehd.net :c
    But thanks for your help.

Share This Page