/*     */   @EventHandler
/*     */   public void onInventoryOpen(InventoryOpenEvent event)
/*     */   {
/* 296 */     if (!(event.getPlayer() instanceof Player))
/*     */     {
/* 298 */       return;
/*     */     }
/*     */ 
/* 302 */     Player p = (Player)event.getPlayer();
/*     */ 
/* 304 */     if (Main.getAPI().isBeingSpectated(p))
/*     */     {
/* 306 */       for (Player spectators : Main.getAPI().getSpectators(p))
/*     */       {
/* 308 */         spectators.openInventory(event.getInventory());
/*     */       }
/*     */     }
/*     */   }