Projectile's passing through players in spectator mode

Discussion in 'Spigot Plugin Development' started by PlatinumGames, May 1, 2017.

  1. Hey Spigot, I'm creating a custom Spectator Mode for my minigame but I'm having a hard time figuring out how to make projectiles pass through players as if the player wasn't there, because the spectators are invisible to the active players i'm cancelling all the spawn packets but even when the player is invisible the server still detect's the player so idk...
     
  2. I reccomend to use to give spectators Gamemode.SPECTATOR ;)
     
  3. Yeah use the built In spectator mode. If you don't want to allow them to teleport around and such using the hotbar just block teleport if the player is in gamemode.spectator much easier than trying to reinvent the wheel


    Sent from my iPhone using Tapatalk
     
  4. Thank's but I'd prefer not to use Spectator mode I need the hotbar available
     
  5. When you are in spec mode, when you press E you will see your hotbar ;)
     
  6. As I said I don't want to use spectator.
     
  7. Why not
     
  8. Well I don't want players to be able to go through block's i need to be able to interact with the hotbar and with menu's

    And i just don't like it...