@EventHandler
    protected void onPlayerCommand(PlayerCommandPreprocessEvent event) {
        
        if (event.isCancelled())
        {
            return;
        }
        Player player = event.getPlayer();
        ScavDuelsPlayer dPlayer2 = ScavDuels.scavDuelsPlayer.get(player.getName());
        if (dPlayer2 != null && dPlayer2.isDueling) {
            String[] split = event.getMessage().split(" ");
            if (!split[0].equalsIgnoreCase("/duel") && !split[0].equalsIgnoreCase("/dueladmin") && !event.getPlayer().hasPermission("ScavDuels.duel.bypassCommands"))
            {
                event.getPlayer().sendMessage("You in a duel. Type /duel Leave to leave");
                event.setCancelled(true);
                return;
            }
        }
        
        
        
    }