/*     */   @EventHandler
/*     */   public void onPlayerInteractEntity(PlayerInteractEntityEvent event)
/*     */   {
/* 225 */     if (Main.getAPI().isSpectating(event.getPlayer()))
/*     */     {
/* 227 */       if (Main.getAPI().isReadyForNextScroll(event.getPlayer()))
/*     */       {
/* 229 */         if (Main.getAPI().getSpectateMode(event.getPlayer()) == SpectateMode.SCROLL)
/*     */         {
/* 231 */           if (Bukkit.getServer().getOnlinePlayers().length > 2)
/*     */           {
/* 233 */             Main.getAPI().scrollRight(event.getPlayer(), Main.getAPI().getSpectateablePlayers());
/* 234 */             Main.getAPI().disableScroll(event.getPlayer(), 5L);
/*     */           }
/*     */ 
/*     */         }
/*     */ 
/*     */       }
/*     */ 
/* 242 */       event.setCancelled(true);
/* 243 */       return;
/*     */     }
/*     */   }