/*     */   @EventHandler
/*     */   public void onCommandPreprocess(PlayerCommandPreprocessEvent event)
/*     */   {
/* 441 */     if (Main.getAPI().isSpectating(event.getPlayer()))
/*     */     {
/* 443 */       if (this.plugin.disable_commands)
/*     */       {
/* 445 */         if ((!event.getMessage().startsWith("/spectate")) && (!event.getMessage().startsWith("/spec")))
/*     */         {
/* 447 */           event.setCancelled(true);
/* 448 */           event.getPlayer().sendMessage(ChatColor.RED + "You can not execute this command while spectating.");
/*     */         }
/*     */       }
/*     */     }
/*     */   }